From 9768508a6a36c1bf6787f778db0367f8306e5611 Mon Sep 17 00:00:00 2001 From: Katherine Date: Tue, 6 Aug 2024 23:01:49 +0800 Subject: [PATCH] fix: markdown block should supports the markdown syntax (#5003) --- .../core/client/src/schema-component/common/utils/uitls.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/common/utils/uitls.tsx b/packages/core/client/src/schema-component/common/utils/uitls.tsx index 34deeedab6..2b846022be 100644 --- a/packages/core/client/src/schema-component/common/utils/uitls.tsx +++ b/packages/core/client/src/schema-component/common/utils/uitls.tsx @@ -155,7 +155,8 @@ export async function getRenderContent(templateEngine, content, variables, local // 处理渲染后的内容 try { const data = getVariablesData(localVariables); - return renderedContent({ ...variables.ctxRef.current, ...data }); + const html = renderedContent({ ...variables.ctxRef.current, ...data }); + return await defaultParse(html); } catch (error) { console.log(error); return content;