From 3c7661ed1aa3e5d0838f8e1d3eaa648cb754062b Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 2 May 2023 13:28:32 +0200 Subject: [PATCH] fix markdown embeds to show link --- src/components/Post.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Post.jsx b/src/components/Post.jsx index 872916a0..a9dc83e1 100644 --- a/src/components/Post.jsx +++ b/src/components/Post.jsx @@ -73,9 +73,9 @@ const Post = ({ content, handlequoteclick, comment }) => { rehypePlugins={[[rehypeSanitize, customSchema]]} components={{ img: ({ src }) => {src}, - video: () => null, - source: () => null, - gif: () => null, + video: ({ src }) => {src}, + source: ({ src }) => {src}, + gif: ({ src }) => {src}, p: ({ children }) =>
{children}
, }} />