This commit is contained in:
Daniel 2025-02-11 18:19:42 +08:00
parent 33109175cc
commit 65aaede35b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -587,6 +587,7 @@ func Preview(id string) (retStdHTML string) {
tree = parse.Parse("", []byte(md), luteEngine.ParseOptions)
// 使用实际主题样式值替换样式变量 Use real theme style value replace var in preview mode https://github.com/siyuan-note/siyuan/issues/11458
fillThemeStyleVar(tree)
luteEngine.RenderOptions.ProtyleMarkNetImg = false
retStdHTML = luteEngine.ProtylePreview(tree, luteEngine.RenderOptions)
if footnotesDefBlock := tree.Root.ChildByType(ast.NodeFootnotesDefBlock); nil != footnotesDefBlock {