Skip to content

Commit 2efedb1

Browse files
committed
update
1 parent 044116c commit 2efedb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/components/markdown.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ export function PreCode(props: { children: any }) {
7676
const htmlDom = ref.current.querySelector("code.language-html");
7777
if (htmlDom) {
7878
setHtmlCode((htmlDom as HTMLElement).innerText);
79+
} else if (refText?.startsWith("<!DOCTYPE")) {
80+
setHtmlCode(refText);
7981
}
8082
}, 600);
8183

0 commit comments

Comments
 (0)