mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fixed greentext
This commit is contained in:
@@ -53,7 +53,8 @@ const createQuotelink = (handlequoteclick, comment, children) => {
|
||||
|
||||
|
||||
const Post = ({ content, handlequoteclick, comment }) => {
|
||||
const sanitizedContent = DOMPurify.sanitize(content);
|
||||
const doubleNewlineContent = content.replaceAll(/\n(?!\n)/g, '\n\n');
|
||||
const sanitizedContent = DOMPurify.sanitize(doubleNewlineContent);
|
||||
|
||||
return (
|
||||
<ReactMarkdown
|
||||
|
||||
Reference in New Issue
Block a user