This commit is contained in:
Liang Ding 2022-09-14 19:45:51 +08:00
parent 76448b6ec5
commit ef17af099a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 11 additions and 3 deletions

View file

@ -654,6 +654,8 @@ func GetContainerText(container *ast.Node) string {
case ast.NodeText, ast.NodeLinkText, ast.NodeFileAnnotationRefText, ast.NodeFootnotesRef,
ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent:
buf.Write(n.Tokens)
case ast.NodeTextMark:
buf.WriteString(n.TextMarkTextContent)
case ast.NodeBlockRef:
if anchor := n.ChildByType(ast.NodeBlockRefText); nil != anchor {
buf.WriteString(anchor.Text())