🎨 Improve export merging sub docs https://ld246.com/article/1747056142309

This commit is contained in:
Daniel 2025-05-12 22:11:30 +08:00
parent 58d47003e1
commit 81f10bda4f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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