mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-08 03:30:23 +08:00
🎨 Improve export preview mode https://github.com/siyuan-note/siyuan/issues/11981
This commit is contained in:
parent
d95390d1c6
commit
2e7fdec06c
@ -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…
Reference in New Issue
Block a user