Skip to content

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

:art: Improve formatting https://github.com/siyuan-note/siyuan/issues/13786

Danielef0142a1bc6c
diff --git a/kernel/model/box.go b/kernel/model/box.go
index ab2d262cc0..0d89c81cf3 100644
--- a/kernel/model/box.go
+++ b/kernel/model/box.go
@@ -513,7 +513,7 @@ func normalizeTree(tree *parse.Tree) (yfmRootID, yfmTitle, yfmUpdated string) {
}
id := n.IALAttr("id")
- if "" == id {
+ if "" == id && n.IsBlock() {
n.SetIALAttr("id", n.ID)
}