mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
revert markdown.tsx
This commit is contained in:
@@ -55,12 +55,10 @@ const Markdown = ({ content }: MarkdownProps) => {
|
|||||||
|
|
||||||
remarkPlugins.push([blockquoteToGreentext]);
|
remarkPlugins.push([blockquoteToGreentext]);
|
||||||
|
|
||||||
const doubleNewlineContent = content?.replace(/\n/g, ' \n\n');
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span className={styles.markdown}>
|
<span className={styles.markdown}>
|
||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
children={doubleNewlineContent}
|
children={content}
|
||||||
remarkPlugins={remarkPlugins}
|
remarkPlugins={remarkPlugins}
|
||||||
rehypePlugins={[[rehypeSanitize, customSchema]]}
|
rehypePlugins={[[rehypeSanitize, customSchema]]}
|
||||||
components={{
|
components={{
|
||||||
|
|||||||
Reference in New Issue
Block a user