This commit is contained in:
GH Action - Upstream Sync 2024-11-16 01:03:24 +00:00
commit 475044db36
1 changed files with 4 additions and 0 deletions

View File

@ -248,6 +248,10 @@ function escapeBrackets(text: string) {
function tryWrapHtmlCode(text: string) {
// try add wrap html code (fixed: html codeblock include 2 newline)
// ignore embed codeblock
if (text.includes("```")) {
return text;
}
return text
.replace(
/([`]*?)(\w*?)([\n\r]*?)(<!DOCTYPE html>)/g,