fix: markdown variables (#5840)

This commit is contained in:
Katherine 2024-12-09 23:17:24 +08:00 committed by GitHub
parent bda94f9c1b
commit 5983a8f819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,13 +151,7 @@ export const MarkdownVoid: any = withDynamicSchemaProps(
setLoading(true);
const cvtContentToHTML = async () => {
setTimeout(async () => {
const replacedContent = await getRenderContent(
engine,
content,
compile(variables),
compile(JSON.parse(JSON.stringify(localVariables))),
parseMarkdown,
);
const replacedContent = await getRenderContent(engine, content, variables, localVariables, parseMarkdown);
setHtml(replacedContent);
});
setLoading(false);