lloydzhou 1 gadu atpakaļ
vecāks
revīzija
1ecefd88f7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/components/markdown.tsx

+ 1 - 1
app/components/markdown.tsx

@@ -62,7 +62,7 @@ export function Mermaid(props: { code: string }) {
 }
 
 export function HTMLPreview(props: { code: string }) {
-  const ref = useRef<HTMLDivElement>(null);
+  const ref = useRef<HTMLIFrameElement>(null);
   const frameId = useRef<string>(nanoid());
   const [height, setHeight] = useState(600);
   /*