fix(markdown): show single break

This commit is contained in:
plebeius.eth
2024-04-13 21:34:36 +02:00
parent 955ff1120c
commit 967f781cfd
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -55,10 +55,12 @@ const Markdown = ({ content }: MarkdownProps) => {
remarkPlugins.push([blockquoteToGreentext]);
const doubleNewlineContent = content?.replace(/\n/g, ' \n\n');
return (
<span className={styles.markdown}>
<ReactMarkdown
children={content}
children={doubleNewlineContent}
remarkPlugins={remarkPlugins}
rehypePlugins={[[rehypeSanitize, customSchema]]}
components={{