feat: markdown fix
This commit is contained in:
parent
b98522373d
commit
a40d46b1a9
|
|
@ -168,8 +168,6 @@ export const stripHtmlValidation = (
|
|||
})
|
||||
.replace(/&/gi, '&')
|
||||
.replace(/ /gi, ' ')
|
||||
.replace(/>/gi, '>')
|
||||
.replace(/</gi, '<')
|
||||
.replace(/<h2>([.\s\S]*?)<\/h2>/g, (match, p1) => {
|
||||
return `<h2>## ${p1}</h2>\n`;
|
||||
})
|
||||
|
|
@ -196,7 +194,9 @@ export const stripHtmlValidation = (
|
|||
),
|
||||
convertMentionFunction
|
||||
)
|
||||
);
|
||||
)
|
||||
.replace(/>/gi, '>')
|
||||
.replace(/</gi, '<');
|
||||
}
|
||||
|
||||
if (value.indexOf('<p>') === -1 && !none) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue