mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(markdown): single returns would be rendered as spaces
This commit is contained in:
@@ -159,7 +159,7 @@ const Markdown = ({ content, title }: MarkdownProps) => {
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
children={content}
|
children={content.replace(/\n/g, '\n\n')} // single newlines would be rendered as spaces
|
||||||
remarkPlugins={remarkPlugins}
|
remarkPlugins={remarkPlugins}
|
||||||
rehypePlugins={[[rehypeSanitize, customSchema]]}
|
rehypePlugins={[[rehypeSanitize, customSchema]]}
|
||||||
components={{
|
components={{
|
||||||
|
|||||||
Reference in New Issue
Block a user