🐛 Embed blocks are exported incorrectly https://github.com/siyuan-note/siyuan/issues/12250

This commit is contained in:
Daniel 2024-08-15 18:07:40 +08:00
parent 1c174b2744
commit 05167fefe4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 23 additions and 7 deletions

View file

@ -1939,7 +1939,8 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
id := tree.Root.ID
// 解析查询嵌入节点
resolveEmbedR(ret.Root, blockEmbedMode, luteEngine, &[]string{})
depth := 0
resolveEmbedR(ret.Root, blockEmbedMode, luteEngine, &[]string{}, &depth)
// 收集引用转脚注
var refFootnotes []*refAsFootnotes