From dfd089132da62613fc9c8bf21e0ab33754065cc5 Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Tue, 23 Jul 2024 14:39:31 +0800 Subject: [PATCH] add preview html code --- app/components/markdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index e870be877..989e2889b 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -77,7 +77,7 @@ export function HTMLPreview(props: { code: string }) { frameBorder={0} sandbox="allow-scripts" style={{ width: "100%", height: 400 }} - srcdoc={props.code} + srcDoc={props.code} > );