fix(Post): remove markdown links showing them as text

This commit is contained in:
plebeius.eth
2023-09-26 20:49:27 +02:00
parent 288ae4d066
commit a5a01a8732
+1
View File
@@ -122,6 +122,7 @@ const Post = ({ content, postQuoteOnClick, postQuoteOnOver, postQuoteOnLeave, po
remarkPlugins={[blockquoteToGreentext, breaks]}
rehypePlugins={[[rehypeSanitize, customSchema]]}
components={{
a: ({ children, href }) => <span>{`[${children}](${href})`}</span>,
img: ({ src }) => <span>{src}</span>,
video: ({ src }) => <span>{src}</span>,
source: ({ src }) => <span>{src}</span>,