From e56216549efe58c1b734f5094eb77bfaa6654c69 Mon Sep 17 00:00:00 2001 From: opchips Date: Fri, 15 Nov 2024 11:56:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E5=9D=97=E5=B5=8C?= =?UTF-8?q?=E5=85=A5=E5=B0=8F=E4=BB=A3=E7=A0=81=E5=9D=97=E6=97=B6=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/markdown.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index f58b1642794..ba85f09701f 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -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]*?)()/g,