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

@ -820,7 +820,7 @@ func tagFromNode(node *ast.Node) (ret string) {
return ast.WalkContinue
}
if ast.NodeTag == n.Type {
if ast.NodeTag == n.Type || n.IsTextMarkType("tag") {
tagBuilder.WriteString("#")
tagBuilder.WriteString(n.Text())
tagBuilder.WriteString("# ")