fix markdown double newline

This commit is contained in:
plebeius.eth
2023-08-18 13:44:39 +02:00
parent c558951d61
commit c11ce2d5dd
+1 -1
View File
@@ -6,7 +6,7 @@ import ForwardRefLink from './ForwardRefLink';
const Post = ({ content, postQuoteOnClick, postQuoteOnOver, postQuoteOnLeave, postQuoteRef }) => {
const doubleNewlineContent = useMemo(() => content?.replaceAll(/\n(?!\n)/g, '\n\n'), [content]);
const doubleNewlineContent = content.replace(/\n/g, ' \n\n');
const customSchema = useMemo(() => ({
...defaultSchema,