This commit is contained in:
Liang Ding 2023-04-28 19:31:51 +08:00
parent a7c617dac4
commit b5a2763fcf
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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