We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044116c commit 2efedb1Copy full SHA for 2efedb1
app/components/markdown.tsx
@@ -76,6 +76,8 @@ export function PreCode(props: { children: any }) {
76
const htmlDom = ref.current.querySelector("code.language-html");
77
if (htmlDom) {
78
setHtmlCode((htmlDom as HTMLElement).innerText);
79
+ } else if (refText?.startsWith("<!DOCTYPE")) {
80
+ setHtmlCode(refText);
81
}
82
}, 600);
83
0 commit comments