fix markdown embeds to show link

This commit is contained in:
Tom
2023-05-02 13:28:32 +02:00
parent c28dc61da6
commit 3c7661ed1a
+3 -3
View File
@@ -73,9 +73,9 @@ const Post = ({ content, handlequoteclick, comment }) => {
rehypePlugins={[[rehypeSanitize, customSchema]]} rehypePlugins={[[rehypeSanitize, customSchema]]}
components={{ components={{
img: ({ src }) => <span>{src}</span>, img: ({ src }) => <span>{src}</span>,
video: () => null, video: ({ src }) => <span>{src}</span>,
source: () => null, source: ({ src }) => <span>{src}</span>,
gif: () => null, gif: ({ src }) => <span>{src}</span>,
p: ({ children }) => <div className="custom-paragraph">{children}</div>, p: ({ children }) => <div className="custom-paragraph">{children}</div>,
}} }}
/> />