mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
cd50f25af7
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"))})
|
||||
tree.Root.PrependChild(heading)
|
||||
for c := tree.Root.FirstChild; nil != c; c = c.Next {
|
||||
if ast.NodeParagraph == c.Type && nil == c.FirstChild {
|
||||
// 剔除空段落
|
||||
continue
|
||||
}
|
||||
|
||||
ret = append(ret, c)
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue