🎨 Improve doc parsing
This commit is contained in:
parent
a0491cd4ff
commit
3922e48404
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ func ParseJSON(jsonData []byte, options *parse.Options) (ret *parse.Tree, needFi
|
|||
if nil == root.Children {
|
||||
newPara := &ast.Node{Type: ast.NodeParagraph, ID: ast.NewNodeID()}
|
||||
newPara.SetIALAttr("id", newPara.ID)
|
||||
newPara.SetIALAttr("updated", newPara.ID[:14])
|
||||
ret.Root.AppendChild(newPara)
|
||||
needFix = true
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue