Skip to content

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

:art: 行级元素支持嵌套和交叉 https://github.com/siyuan-note/siyuan/issues/2911

Liang Ding8801e5920185
diff --git a/kernel/model/file.go b/kernel/model/file.go
index a49c25e966..f409586ad7 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -1433,6 +1433,7 @@ func createDoc(boxID, p, title, dom string) (err error) {
tree.HPath = hPath
tree.ID = id
tree.Root.ID = id
+ tree.Root.Spec = "1"
updated := util.TimeFromID(id)
tree.Root.KramdownIAL = [][]string{{"id", id}, {"title", html.EscapeAttrVal(title)}, {"updated", updated}}
if nil == tree.Root.FirstChild {