This commit is contained in:
Liang Ding 2022-09-16 19:34:21 +08:00
parent c5f0b96929
commit 02d9245bcf
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -90,7 +90,11 @@ func resetTree(tree *parse.Tree, titleSuffix string) {
return ast.WalkContinue
}
if "1" != refIDs[defID] {
n.Tokens = []byte(refIDs[defID])
if ast.NodeBlockRefID == n.Type {
n.Tokens = []byte(refIDs[defID])
} else if ast.NodeTextMark == n.Type {
n.TextMarkBlockRefID = refIDs[defID]
}
}
return ast.WalkContinue
})