mirror of
https://git.mirrors.martin98.com/https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-08-02 11:20:38 +08:00
update
This commit is contained in:
parent
044116c14c
commit
2efedb1736
@ -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("<!DOCTYPE")) {
|
||||
setHtmlCode(refText);
|
||||
}
|
||||
}, 600);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user