From ef0142a1bc6cb11798ac25341ede9521ee1a82a7 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 11 Jan 2025 17:05:36 +0800 Subject: [PATCH] :art: Improve formatting https://github.com/siyuan-note/siyuan/issues/13786 --- kernel/model/box.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/box.go b/kernel/model/box.go index ab2d262cc..0d89c81cf 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) }