Przeglądaj źródła

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

Daniel 1 rok temu
rodzic
commit
aed87dfd15
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      kernel/treenode/node.go

+ 1 - 1
kernel/treenode/node.go

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