From 31081079bca4d490c094ea1999c0842252c170e1 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Sat, 15 Jun 2024 21:02:53 +0200 Subject: [PATCH] fix(markdown): remove spoiler text, there's no syntax for it yet --- src/components/markdown/markdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/markdown/markdown.tsx b/src/components/markdown/markdown.tsx index 7bac056a..2ec0e78e 100644 --- a/src/components/markdown/markdown.tsx +++ b/src/components/markdown/markdown.tsx @@ -164,7 +164,7 @@ const Markdown = ({ content, spoiler, title }: MarkdownProps) => { remarkPlugins={remarkPlugins} rehypePlugins={[[rehypeSanitize, customSchema]]} components={{ - p: ({ children }) =>

{spoiler ? {children} : children}

, + p: ({ children }) =>

{children}

, img: ({ src }) => {src}, video: ({ src }) => {src}, iframe: ({ src }) => {src},