mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
🎨 导出 PDF/HTML 时遵循是否显示书签、命名等设置 Fix https://github.com/siyuan-note/siyuan/issues/6333
This commit is contained in:
parent
1c03d11f2b
commit
1f03ae95bd
1 changed files with 1 additions and 1 deletions
|
|
@ -1208,7 +1208,7 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool) (re
|
|||
|
||||
if Conf.Export.AddTitle {
|
||||
if root, _ := getBlock(id); nil != root {
|
||||
title := &ast.Node{Type: ast.NodeHeading, HeadingLevel: 1}
|
||||
title := &ast.Node{Type: ast.NodeHeading, HeadingLevel: 1, KramdownIAL: parse.Map2IAL(root.IAL)}
|
||||
content := html.UnescapeString(root.Content)
|
||||
title.AppendChild(&ast.Node{Type: ast.NodeText, Tokens: []byte(content)})
|
||||
ret.Root.PrependChild(title)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue