瀏覽代碼

:art: 支持文档块制作闪卡 Fix https://github.com/siyuan-note/siyuan/issues/7460

Liang Ding 2 年之前
父節點
當前提交
f0bcd7f51f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/model/flashcard.go

+ 1 - 1
kernel/model/flashcard.go

@@ -249,7 +249,7 @@ func getTreeSubTreeChildBlocks(rootID string) (treeBlockIDs map[string]bool) {
 
 	for _, t := range trees {
 		ast.Walk(t.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
-			if !entering || !n.IsBlock() || ast.NodeDocument == n.Type {
+			if !entering || !n.IsBlock() {
 				return ast.WalkContinue
 			}