Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-21 10:31:09 +08:00
parent 7b1a04b332
commit 5ec41ff6cb
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -187,7 +187,15 @@ func nodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATi
buf.WriteString(n.CalloutIcon + " ")
}
if "" != n.CalloutTitle {
buf.WriteString(n.CalloutTitle + " ")
if titleTree := parse.Inline("", []byte(n.CalloutTitle), luteEngine.ParseOptions); nil != titleTree && nil != titleTree.Root.FirstChild.FirstChild {
var inlines []*ast.Node
for c := titleTree.Root.FirstChild.FirstChild; nil != c; c = c.Next {
inlines = append(inlines, c)
}
for _, inline := range inlines {
buf.WriteString(inline.Content())
}
}
}
}
return ast.WalkContinue