This commit is contained in:
Liang Ding
2022-11-22 00:11:38 +08:00
parent 4849b20620
commit b8046c9ad7

View File

@@ -262,9 +262,8 @@ func GetHeadingChildrenIDs(id string) (ret []string) {
return
}
nodes := append([]*ast.Node{}, heading)
children := treenode.HeadingChildren(heading)
nodes = append(nodes, children...)
nodes := append([]*ast.Node{}, children...)
for _, n := range nodes {
ret = append(ret, n.ID)
}