mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 支持基于文档复习闪卡 https://github.com/siyuan-note/siyuan/issues/7057
This commit is contained in:
parent
3dc2d80821
commit
8ab870b9c5
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ func GetTreeFlashcards(rootID string, page int) (blocks []*Block, total, pageCou
|
||||||
treeBlockIDs := map[string]bool{}
|
treeBlockIDs := map[string]bool{}
|
||||||
for _, t := range trees {
|
for _, t := range trees {
|
||||||
ast.Walk(t.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
|
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
|
return ast.WalkContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue