mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
fix: markdown block should supports the markdown syntax (#5003)
This commit is contained in:
parent
a74f408d07
commit
9768508a6a
@ -155,7 +155,8 @@ export async function getRenderContent(templateEngine, content, variables, local
|
|||||||
// 处理渲染后的内容
|
// 处理渲染后的内容
|
||||||
try {
|
try {
|
||||||
const data = getVariablesData(localVariables);
|
const data = getVariablesData(localVariables);
|
||||||
return renderedContent({ ...variables.ctxRef.current, ...data });
|
const html = renderedContent({ ...variables.ctxRef.current, ...data });
|
||||||
|
return await defaultParse(html);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
return content;
|
return content;
|
||||||
|
Loading…
Reference in New Issue
Block a user