🎨 Improve exporting block ref https://github.com/siyuan-note/siyuan/issues/13283
This commit is contained in:
parent
e1a9051d76
commit
3b22330b4b
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue