From 8ab870b9c5db870a1d1a5266aa03fc56cbb582cc Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 19 Feb 2023 09:40:01 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=AF=E6=8C=81=E5=9F=BA=E4=BA=8E?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=A4=8D=E4=B9=A0=E9=97=AA=E5=8D=A1=20https:?= =?UTF-8?q?//github.com/siyuan-note/siyuan/issues/7057?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/flashcard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go index 2cea61fa7..481e4f2f8 100644 --- a/kernel/model/flashcard.go +++ b/kernel/model/flashcard.go @@ -70,7 +70,7 @@ func GetTreeFlashcards(rootID string, page int) (blocks []*Block, total, pageCou treeBlockIDs := map[string]bool{} for _, t := range trees { ast.Walk(t.Root, func(n *ast.Node, entering bool) ast.WalkStatus { - if !entering || !n.IsBlock() { + if !entering || !n.IsBlock() || ast.NodeDocument == n.Type { return ast.WalkContinue }