Skip to content

Commit

Permalink
🎨 Improve doc parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 10, 2024
1 parent a0491cd commit 3922e48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/filesys/json_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3922e48

Please sign in to comment.