From 9a86c42c95be5b2bb85f44c0bdeb7714dc526a49 Mon Sep 17 00:00:00 2001 From: opchips Date: Tue, 12 Nov 2024 16:33:55 +0800 Subject: [PATCH] update --- app/components/markdown.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index 8ea73112380..f58b1642794 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -90,7 +90,11 @@ export function PreCode(props: { children: any }) { const refText = ref.current.querySelector("code")?.innerText; if (htmlDom) { setHtmlCode((htmlDom as HTMLElement).innerText); - } else if (refText?.startsWith("