1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 14:44:21 +00:00

Change FestaMarkdownRenderer's header mapping

This commit is contained in:
Steffo 2022-07-17 06:20:19 +02:00
parent 553d292634
commit e85363c4f3
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -14,8 +14,11 @@ export const FestaMarkdownRenderer = memo(({ code }: FestaMarkdownRendererProps)
return (
<ReactMarkdown
components={{
h1: "h3", // h1 is reserved for the site name
h2: "h3", // h2 is reserved for the page name
h1: "h2", // h1 is reserved for the page name
h2: "h3",
h3: "h4",
h4: "h5",
h5: "h6",
img: undefined, // images reveal the IP of the user to third parties!
}}
>