🐛 Dynamic loading results in incomplete list display https://github.com/siyuan-note/siyuan/issues/10965

This commit is contained in:
Daniel 2024-04-10 17:02:11 +08:00
parent 3b339656c9
commit aed87dfd15
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -342,7 +342,7 @@ func FirstLeafBlock(node *ast.Node) (ret *ast.Node) {
func CountBlockNodes(node *ast.Node) (ret int) {
ast.Walk(node, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering || !n.IsBlock() || ast.NodeList == n.Type || ast.NodeListItem == n.Type || ast.NodeBlockquote == n.Type || ast.NodeSuperBlock == n.Type {
if !entering || !n.IsBlock() || ast.NodeList == n.Type || ast.NodeBlockquote == n.Type || ast.NodeSuperBlock == n.Type {
return ast.WalkContinue
}