1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-23 15:14:23 +00:00
festa/components/extensions/FestaMarkdown.tsx

18 lines
370 B
TypeScript
Raw Normal View History

2022-06-08 02:52:41 +00:00
import { default as ReactMarkdown } from "react-markdown"
2022-06-04 03:13:19 +00:00
type FestaMarkdownProps = {
markdown: string,
}
export function FestaMarkdown({markdown}: FestaMarkdownProps) {
return (
<ReactMarkdown
components={{
h1: "h3",
h2: "h3",
}}
>
{markdown}
</ReactMarkdown>
)
}