Browse Source

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

Liang Ding 2 năm trước cách đây
mục cha
commit
8801e59201
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      kernel/model/file.go

+ 1 - 0
kernel/model/file.go

@@ -1433,6 +1433,7 @@ func createDoc(boxID, p, title, dom string) (err error) {
 	tree.HPath = hPath
 	tree.HPath = hPath
 	tree.ID = id
 	tree.ID = id
 	tree.Root.ID = id
 	tree.Root.ID = id
+	tree.Root.Spec = "1"
 	updated := util.TimeFromID(id)
 	updated := util.TimeFromID(id)
 	tree.Root.KramdownIAL = [][]string{{"id", id}, {"title", html.EscapeAttrVal(title)}, {"updated", updated}}
 	tree.Root.KramdownIAL = [][]string{{"id", id}, {"title", html.EscapeAttrVal(title)}, {"updated", updated}}
 	if nil == tree.Root.FirstChild {
 	if nil == tree.Root.FirstChild {