From 2efedb17366a5d99eb9aabc1bceb27653f113a99 Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 25 Jul 2024 13:34:59 +0800 Subject: [PATCH] update --- app/components/markdown.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index d5728bf5e..fa8d12c40 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -76,6 +76,8 @@ export function PreCode(props: { children: any }) { const htmlDom = ref.current.querySelector("code.language-html"); if (htmlDom) { setHtmlCode((htmlDom as HTMLElement).innerText); + } else if (refText?.startsWith("