Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve callout block https://github.com/siyuan-note/siyuan/issues/16607

Daniel184ba32aa4c1
diff --git a/kernel/sql/block.go b/kernel/sql/block.go
index 920ed99951..d7ebbc0968 100644
--- a/kernel/sql/block.go
+++ b/kernel/sql/block.go
@@ -181,6 +181,15 @@ func nodeStaticContent(node *ast.Node, excludeTypes []string, includeTextMarkATi
buf.WriteByte(' ')
lastSpace = true
}
+ if ast.NodeCallout == n.Type {
+ buf.WriteString(n.CalloutType + " ")
+ if "" != n.CalloutIcon && 0 == n.CalloutIconType {
+ buf.WriteString(n.CalloutIcon + " ")
+ }
+ if "" != n.CalloutTitle {
+ buf.WriteString(n.CalloutTitle)
+ }
+ }
return ast.WalkContinue
}