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={{
+1 -1
View File
@@ -14839,7 +14839,7 @@ react-scripts@5.0.1:
optionalDependencies:
fsevents "^2.3.2"
react-virtuoso@^4.7.8:
react-virtuoso@4.7.8:
version "4.7.8"
resolved "https://registry.yarnpkg.com/react-virtuoso/-/react-virtuoso-4.7.8.tgz#d64f950b726a3fbcba647b0dc3c0d892ea80b1d4"
integrity sha512-P0BHOsLrmfnXv1bY9Nja07nvFciRGNgM7lTRHMcVDteTDb9tLtHzajBapKGUZ5zdyUOEVWvuW6ufQxzdGN2AKw==