You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
494 B
22 lines
494 B
import ReactMarkdown from "react-markdown"
|
|
import styled from "styled-components"
|
|
|
|
const MarkdownElement = styled(ReactMarkdown)`
|
|
blockquote {
|
|
margin: 0;
|
|
background-color: gainsboro;
|
|
padding: 10px 10px 10px 10px;
|
|
p:last-child {
|
|
margin-bottom: 0;
|
|
font-size: 1.1em;
|
|
}
|
|
}
|
|
`
|
|
|
|
interface IProps {
|
|
children: string
|
|
}
|
|
|
|
export function Markdown({ children }: IProps) {
|
|
return <MarkdownElement>{children}</MarkdownElement>
|
|
}
|
|
|