mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
18 lines
No EOL
370 B
TypeScript
18 lines
No EOL
370 B
TypeScript
import { default as ReactMarkdown } from "react-markdown"
|
|
|
|
type FestaMarkdownProps = {
|
|
markdown: string,
|
|
}
|
|
|
|
export function FestaMarkdown({markdown}: FestaMarkdownProps) {
|
|
return (
|
|
<ReactMarkdown
|
|
components={{
|
|
h1: "h3",
|
|
h2: "h3",
|
|
}}
|
|
>
|
|
{markdown}
|
|
</ReactMarkdown>
|
|
)
|
|
} |