mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-25 23:20:19 +09:00
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
This commit is contained in:
commit
fd02254e74
@ -248,6 +248,10 @@ function escapeBrackets(text: string) {
|
|||||||
|
|
||||||
function tryWrapHtmlCode(text: string) {
|
function tryWrapHtmlCode(text: string) {
|
||||||
// try add wrap html code (fixed: html codeblock include 2 newline)
|
// try add wrap html code (fixed: html codeblock include 2 newline)
|
||||||
|
// ignore embed codeblock
|
||||||
|
if (text.includes("```")) {
|
||||||
|
return text;
|
||||||
|
}
|
||||||
return text
|
return text
|
||||||
.replace(
|
.replace(
|
||||||
/([`]*?)(\w*?)([\n\r]*?)(<!DOCTYPE html>)/g,
|
/([`]*?)(\w*?)([\n\r]*?)(<!DOCTYPE html>)/g,
|
||||||
|
Loading…
Reference in New Issue
Block a user