This commit is contained in:
Liang Ding 2023-02-10 15:21:20 +08:00
parent 38e38e83a4
commit 7bdff9eaeb
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 7 additions and 9 deletions

View file

@ -1362,7 +1362,7 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,
if n.IsTextMarkType("inline-math") {
n.TextMarkInlineMathContent = strings.TrimSpace(n.TextMarkInlineMathContent)
return ast.WalkContinue
} else if n.IsTextMarkType("file-annotation-ref") {
} else if treenode.IsFileAnnotationRef(n) {
refID := n.TextMarkFileAnnotationRefID
status := processFileAnnotationRef(refID, n, fileAnnotationRefMode)
unlinks = append(unlinks, n)