mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🐛 Export PDF preview fails to load https://github.com/siyuan-note/siyuan/issues/8126
This commit is contained in:
parent
a7c617dac4
commit
b5a2763fcf
1 changed files with 4 additions and 0 deletions
|
|
@ -1624,6 +1624,10 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,
|
|||
return ast.WalkContinue
|
||||
} else if treenode.IsFileAnnotationRef(n) {
|
||||
refID := n.TextMarkFileAnnotationRefID
|
||||
if !strings.Contains(refID, "/") {
|
||||
return ast.WalkSkipChildren
|
||||
}
|
||||
|
||||
status := processFileAnnotationRef(refID, n, fileAnnotationRefMode)
|
||||
unlinks = append(unlinks, n)
|
||||
return status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue