feat: markdown fix

This commit is contained in:
Nevo David 2025-09-22 00:20:26 +07:00
parent b98522373d
commit a40d46b1a9
1 changed files with 3 additions and 3 deletions

View File

@ -168,8 +168,6 @@ export const stripHtmlValidation = (
})
.replace(/&/gi, '&')
.replace(/ /gi, ' ')
.replace(/>/gi, '>')
.replace(/&lt;/gi, '<')
.replace(/<h2>([.\s\S]*?)<\/h2>/g, (match, p1) => {
return `<h2>## ${p1}</h2>\n`;
})
@ -196,7 +194,9 @@ export const stripHtmlValidation = (
),
convertMentionFunction
)
);
)
.replace(/&gt;/gi, '>')
.replace(/&lt;/gi, '<');
}
if (value.indexOf('<p>') === -1 && !none) {