🎨 Improve doc tree parsing

This commit is contained in:
Daniel 2024-03-16 12:22:18 +08:00
parent dab89c39fa
commit ff79d71286
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 7 additions and 1 deletions

View file

@ -146,6 +146,7 @@ func prepareWriteTree(tree *parse.Tree) (data []byte, filePath string, err error
tree.Root.Spec = "1"
logging.LogInfof("migrated tree [%s] from spec [%s] to [%s]", filePath, oldSpec, tree.Root.Spec)
}
tree.Root.SetIALAttr("type", "doc")
renderer := render.NewJSONRenderer(tree, luteEngine.RenderOptions)
data = renderer.Render()