This commit is contained in:
Daniel 2024-09-18 12:21:52 +08:00
parent d95390d1c6
commit 2e7fdec06c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -2102,7 +2102,7 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
if addTitle {
if root, _ := getBlock(id, tree); nil != root {
root.IAL["type"] = "doc"
title := &ast.Node{Type: ast.NodeHeading, HeadingLevel: 1}
title := &ast.Node{ID: root.ID, Type: ast.NodeHeading, HeadingLevel: 1}
for k, v := range root.IAL {
if "type" == k {
continue