mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
c7dd10911f
commit
677417550a
1 changed files with 4 additions and 1 deletions
|
|
@ -891,6 +891,9 @@ func ExportHTML(id, savePath string, pdf, image, keepFold, merge bool) (name, do
|
||||||
|
|
||||||
tree := prepareExportTree(bt)
|
tree := prepareExportTree(bt)
|
||||||
node = treenode.GetNodeInTree(tree, id)
|
node = treenode.GetNodeInTree(tree, id)
|
||||||
|
if ast.NodeDocument == node.Type {
|
||||||
|
node.RemoveIALAttr("style")
|
||||||
|
}
|
||||||
|
|
||||||
if merge {
|
if merge {
|
||||||
var mergeErr error
|
var mergeErr error
|
||||||
|
|
@ -2442,7 +2445,7 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
|
||||||
root.IAL["type"] = "doc"
|
root.IAL["type"] = "doc"
|
||||||
title := &ast.Node{Type: ast.NodeHeading, HeadingLevel: 1}
|
title := &ast.Node{Type: ast.NodeHeading, HeadingLevel: 1}
|
||||||
for k, v := range root.IAL {
|
for k, v := range root.IAL {
|
||||||
if "type" == k {
|
if "type" == k || "style" == k {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
title.SetIALAttr(k, v)
|
title.SetIALAttr(k, v)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue