This commit is contained in:
Liang Ding 2022-09-20 11:26:53 +08:00
parent 64bea9c004
commit aaedbb2a7f
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 26 additions and 4 deletions

View file

@ -1096,6 +1096,12 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros bool) (ret *parse.T
status := processFileAnnotationRef(refID, n)
unlinks = append(unlinks, n)
return status
} else if n.IsTextMarkType("tag") {
if !wysiwyg {
n.Type = ast.NodeText
n.Tokens = []byte(Conf.Export.TagOpenMarker + n.TextMarkTextContent + Conf.Export.TagCloseMarker)
return ast.WalkContinue
}
}
case ast.NodeFileAnnotationRef:
refIDNode := n.ChildByType(ast.NodeFileAnnotationRefID)