An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve callout block https://github.com/siyuan-note/siyuan/issues/16607 https://ld246.com/article/1766149237514
Daniel5ec41ff6cb56
diff --git a/kernel/sql/block.go b/kernel/sql/block.goindex 8ddef44899..f9032617b1 100644--- a/kernel/sql/block.go+++ b/kernel/sql/block.go@@ -187,7 +187,15 @@ func nodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATibuf.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