diff --git a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx index eb9a7e5055..f840953a82 100644 --- a/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/Markdown.Void.tsx @@ -150,15 +150,16 @@ export const MarkdownVoid: any = withDynamicSchemaProps( useEffect(() => { setLoading(true); const cvtContentToHTML = async () => { - const replacedContent = await getRenderContent( - engine, - content, - compile(variables), - compile(localVariables), - parseMarkdown, - ); - - setHtml(replacedContent); + setTimeout(async () => { + const replacedContent = await getRenderContent( + engine, + content, + compile(variables), + compile(localVariables), + parseMarkdown, + ); + setHtml(replacedContent); + }); setLoading(false); }; cvtContentToHTML();