This commit is contained in:
Liang Ding 2022-09-14 19:46:01 +08:00
parent ef17af099a
commit 294d6865fa
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -89,6 +89,8 @@ func NodeStaticContent(node *ast.Node) string {
case ast.NodeText, ast.NodeFileAnnotationRefText, ast.NodeFootnotesRef,
ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent, ast.NodeHTMLBlock:
buf.Write(n.Tokens)
case ast.NodeTextMark:
buf.WriteString(n.TextMarkTextContent)
case ast.NodeBackslash:
buf.WriteByte(lex.ItemBackslash)
case ast.NodeBackslashContent:
@ -228,6 +230,7 @@ var typeAbbrMap = map[string]string{
"NodeSub": "sub",
"NodeKbd": "kbd",
"NodeUnderline": "underline",
"NodeTextMark": "textmark",
}
var abbrTypeMap = map[string]string{}