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("