diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index 534860531..aa4deb8e3 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -249,6 +249,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]*?)()/g,