mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 02:09:59 +08:00
🎨 Improve doc parsing
This commit is contained in:
parent
a0491cd4ff
commit
3922e48404
@ -72,6 +72,7 @@ func ParseJSON(jsonData []byte, options *parse.Options) (ret *parse.Tree, needFi
|
|||||||
if nil == root.Children {
|
if nil == root.Children {
|
||||||
newPara := &ast.Node{Type: ast.NodeParagraph, ID: ast.NewNodeID()}
|
newPara := &ast.Node{Type: ast.NodeParagraph, ID: ast.NewNodeID()}
|
||||||
newPara.SetIALAttr("id", newPara.ID)
|
newPara.SetIALAttr("id", newPara.ID)
|
||||||
|
newPara.SetIALAttr("updated", newPara.ID[:14])
|
||||||
ret.Root.AppendChild(newPara)
|
ret.Root.AppendChild(newPara)
|
||||||
needFix = true
|
needFix = true
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user