feat: markdown fix
Some checks failed
Build Containers / build-containers-common (push) Has been cancelled
Build / build (20.17.0) (push) Has been cancelled
Build Containers / build-containers (amd64, ubuntu-latest) (push) Has been cancelled
Build Containers / build-containers (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Build Containers / build-container-manifest (push) Has been cancelled
Some checks failed
Build Containers / build-containers-common (push) Has been cancelled
Build / build (20.17.0) (push) Has been cancelled
Build Containers / build-containers (amd64, ubuntu-latest) (push) Has been cancelled
Build Containers / build-containers (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Build Containers / build-container-manifest (push) Has been cancelled
This commit is contained in:
parent
b98522373d
commit
a40d46b1a9
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue