mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 Improve export merging sub docs https://ld246.com/article/1747056142309
This commit is contained in:
parent
58d47003e1
commit
81f10bda4f
1 changed files with 0 additions and 5 deletions
|
|
@ -100,11 +100,6 @@ func loadTreeNodes(box string, p string, level int) (ret []*ast.Node, err error)
|
||||||
heading.AppendChild(&ast.Node{Type: ast.NodeText, Tokens: []byte(tree.Root.IALAttr("title"))})
|
heading.AppendChild(&ast.Node{Type: ast.NodeText, Tokens: []byte(tree.Root.IALAttr("title"))})
|
||||||
tree.Root.PrependChild(heading)
|
tree.Root.PrependChild(heading)
|
||||||
for c := tree.Root.FirstChild; nil != c; c = c.Next {
|
for c := tree.Root.FirstChild; nil != c; c = c.Next {
|
||||||
if ast.NodeParagraph == c.Type && nil == c.FirstChild {
|
|
||||||
// 剔除空段落
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = append(ret, c)
|
ret = append(ret, c)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue