mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	update
This commit is contained in:
		@@ -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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user