浏览代码

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

Liang Ding 2 年之前
父节点
当前提交
8801e59201
共有 1 个文件被更改,包括 1 次插入0 次删除
  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.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 {