🎨 Improve export preview mode https://github.com/siyuan-note/siyuan/issues/11981
This commit is contained in:
parent
d95390d1c6
commit
2e7fdec06c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue