We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e004a commit 3198c04Copy full SHA for 3198c04
src/lib/parser/DeckParser.ts
@@ -187,11 +187,11 @@ export class DeckParser {
187
188
const toggleList = this.extractToggleLists(dom);
189
const paragraphs = this.extractCardsFromParagraph(dom);
190
- let cards: Note[] = [...this.extractCards(dom, toggleList), ...paragraphs];
+ let cards: Note[] = this.extractCards(dom, toggleList);
191
192
// Note: this is a fallback behaviour until we can provide people more flexibility on picking non-toggles
193
if (cards.length === 0) {
194
- cards.push(...this.extractCardsFromLists(dom));
+ cards.push(...[...this.extractCardsFromLists(dom), ...paragraphs]);
195
}
196
197
// Prevent bad cards from leaking out
0 commit comments