mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 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 addTitle {
|
||||||
if root, _ := getBlock(id, tree); nil != root {
|
if root, _ := getBlock(id, tree); nil != root {
|
||||||
root.IAL["type"] = "doc"
|
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 {
|
for k, v := range root.IAL {
|
||||||
if "type" == k {
|
if "type" == k {
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue