mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
🐛 exportMdContent missing footnotes https://github.com/siyuan-note/siyuan/pull/16953
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
c717acaf5a
commit
3f3db3c34f
1 changed files with 7 additions and 1 deletions
|
|
@ -3069,10 +3069,16 @@ func resolveFootnotesDefs(refFootnotes *[]*refAsFootnotes, currentTree *parse.Tr
|
|||
for _, foot := range *refFootnotes {
|
||||
t, err := loadTreeWithCache(foot.defID, treeCache)
|
||||
if nil != err {
|
||||
return
|
||||
logging.LogWarnf("load tree for footnote def [%s] refNum [%s] failed: %s", foot.defID, foot.refNum, err)
|
||||
continue
|
||||
}
|
||||
|
||||
defNode := treenode.GetNodeInTree(t, foot.defID)
|
||||
if nil == defNode {
|
||||
logging.LogErrorf("not found node [%s] in tree for footnote refNum [%s]", foot.defID, foot.refNum)
|
||||
continue
|
||||
}
|
||||
|
||||
docID := util.GetTreeID(defNode.Path)
|
||||
var nodes []*ast.Node
|
||||
if ast.NodeHeading == defNode.Type {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue