mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2026-04-29 14:34:26 +08:00
Compare commits
2 Commits
b08ce5630c
...
f22cec1eb4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f22cec1eb4 | ||
|
|
e56216549e |
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user