mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 14:44:21 +00:00
Do not crash when FestaMarkdownRenderer tries to render a img
This commit is contained in:
parent
06b8bb2df5
commit
e384b941f1
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue