This commit is contained in:
Liang Ding 2022-09-14 19:53:22 +08:00
parent 578b964463
commit 4aac04d347
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 5 additions and 5 deletions

View file

@ -655,7 +655,7 @@ func GetContainerText(container *ast.Node) string {
ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent:
buf.Write(n.Tokens)
case ast.NodeTextMark:
buf.WriteString(n.TextMarkTextContent)
buf.WriteString(n.Content())
case ast.NodeBlockRef:
if anchor := n.ChildByType(ast.NodeBlockRefText); nil != anchor {
buf.WriteString(anchor.Text())