跳转至

Including Blank Lines in Flashcards

By default, Multi-line Basic, Multi-line Bidirectional and Cloze type flashcards recognize a blank line as the end of the flashcard text. This means that blank lines can not be included within the text.

If blank lines need to be included (e.g. on a card containing a markdown table), the Characters denoting the end of clozes and multiline flashcards setting needs to be changed.

For example, it could be changed to +++.

Global Edit Required

Note that after changing this you have to manually edit any flashcards you already have.

Including a Table in the Flashcard Answer

Obsidian requires a blank line before a table for it to be displayed correctly.

Without it, Obsidian displays it just as text and not correctly formatted.

table-with-no-preceding-blank-line

And with a blank line after the ? and before the table, it is displays correctly. table-with-preceding-blank-line

However, by default a blank line signifies the end of the multiline card.

To include the blank line, the Characters denoting the end of clozes and multiline flashcards setting needs to be changed. Then that character sequence added as a line after the end of the flashcard text. For example:

table-with-preceding-blank-line+++

Now the card is displayed correctly during a review.

table-with-preceding-blank-line-review

Including Blank Lines in a Cloze Flashcard

With Convert ==highlights== to clozes enabled in settings and the Characters denoting the end of clozes and multiline flashcards set to +++, we can have blank lines in a cloze flashcard. E.g.

cloze-with-blank-lines

As there are 3 clozes defined, three separate cards will be generated for review. One card, for example is:

cloze-with-blank-lines-front1

And after Show Answer is clicked, the following is displayed:

cloze-with-blank-lines-answer

Limitation

Blank Lines in Answer Side Only

Blank lines are only supported in the answer side of a multiline flashcard, and not in the question side.