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]]}
components={{
img: ({ src }) => <span>{src}</span>,
video: () => null,
source: () => null,
gif: () => null,
video: ({ src }) => <span>{src}</span>,
source: ({ src }) => <span>{src}</span>,
gif: ({ src }) => <span>{src}</span>,
p: ({ children }) => <div className="custom-paragraph">{children}</div>,
}}
/>