mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: markdown variables (#5840)
This commit is contained in:
parent
bda94f9c1b
commit
5983a8f819
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user