From 5ec41ff6cb56fdff13ac929f42f5ac4ca574d485 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 21 Dec 2025 10:31:09 +0800 Subject: [PATCH] :art: Improve callout block https://github.com/siyuan-note/siyuan/issues/16607 https://ld246.com/article/1766149237514 Signed-off-by: Daniel <845765@qq.com> --- kernel/sql/block.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/sql/block.go b/kernel/sql/block.go index 8ddef4489..f9032617b 100644 --- a/kernel/sql/block.go +++ b/kernel/sql/block.go @@ -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