mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +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)
|
||||
node = treenode.GetNodeInTree(tree, id)
|
||||
if ast.NodeDocument == node.Type {
|
||||
node.RemoveIALAttr("style")
|
||||
}
|
||||
|
||||
if merge {
|
||||
var mergeErr error
|
||||
|
|
@ -2442,7 +2445,7 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
|
|||
root.IAL["type"] = "doc"
|
||||
title := &ast.Node{Type: ast.NodeHeading, HeadingLevel: 1}
|
||||
for k, v := range root.IAL {
|
||||
if "type" == k {
|
||||
if "type" == k || "style" == k {
|
||||
continue
|
||||
}
|
||||
title.SetIALAttr(k, v)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue