mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🎨 导出 PDF 支持保留折叠状态 https://github.com/siyuan-note/siyuan/issues/5941
This commit is contained in:
parent
2dcb08a633
commit
2657313306
2 changed files with 5 additions and 10 deletions
|
|
@ -1249,6 +1249,11 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool) (re
|
|||
// 块折叠以后导出 HTML/PDF 固定展开 https://github.com/siyuan-note/siyuan/issues/4064
|
||||
n.RemoveIALAttr("fold")
|
||||
n.RemoveIALAttr("heading-fold")
|
||||
} else {
|
||||
if "1" == n.IALAttr("heading-fold") {
|
||||
unlinks = append(unlinks, n)
|
||||
return ast.WalkContinue
|
||||
}
|
||||
}
|
||||
|
||||
if ast.NodeParagraph == n.Type {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue