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

Do not crash when FestaMarkdownRenderer tries to render a img

This commit is contained in:
Steffo 2022-07-27 01:48:49 +02:00
parent 06b8bb2df5
commit e384b941f1
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,4 +1,4 @@
import { memo } from "react" import { Fragment, memo } from "react"
import { default as ReactMarkdown } from "react-markdown" import { default as ReactMarkdown } from "react-markdown"
import { ReactMarkdownOptions } from "react-markdown/lib/react-markdown" import { ReactMarkdownOptions } from "react-markdown/lib/react-markdown"
@ -21,7 +21,7 @@ export const FestaMarkdownRenderer = memo(({ code, ...props }: FestaMarkdownRend
h3: "h4", h3: "h4",
h4: "h5", h4: "h5",
h5: "h6", h5: "h6",
img: undefined, // images reveal the IP of the user to third parties! img: ({ }) => (<></>), // images reveal the IP of the user to third parties!
...props.components, ...props.components,
}} }}
> >