mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
🎨 支持基于文档复习闪卡 https://github.com/siyuan-note/siyuan/issues/7057
This commit is contained in:
parent
3dc2d80821
commit
8ab870b9c5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user