This commit is contained in:
Daniel 2024-11-28 15:37:45 +08:00
parent e1a9051d76
commit 3b22330b4b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -2153,6 +2153,11 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
// 如果是聚焦导出,可能存在没有使用的脚注定义块,在这里进行清理
// Improve focus export conversion of block refs to footnotes https://github.com/siyuan-note/siyuan/issues/10647
footnotesRefs := ret.Root.ChildrenByType(ast.NodeFootnotesRef)
for footnotesDef := footnotesDefBlock.FirstChild; nil != footnotesDef; footnotesDef = footnotesDef.Next {
fnRefsInDef := footnotesDef.ChildrenByType(ast.NodeFootnotesRef)
footnotesRefs = append(footnotesRefs, fnRefsInDef...)
}
for footnotesDef := footnotesDefBlock.FirstChild; nil != footnotesDef; footnotesDef = footnotesDef.Next {
exist := false
for _, ref := range footnotesRefs {