flashcards-obsidian icon indicating copy to clipboard operation
flashcards-obsidian copied to clipboard

Can't create multiline cloze

Open hidara2000 opened this issue 2 years ago • 0 comments

Describe the bug It is not possible to create a multiline cloze. Each line seperated by a newline character is treated as a separate cloze

Markdown used

---
tags: 
cards-deck: Modelling::Week 44 - Cloze
---

1.. it forces us to {1:think} about all of the parts of the model <br>2.. it helps us to {2:communicate} our model clearly to others<br>3.. it forms the basis for our model {3:implementation}


a.. it forces us to {1:think} about all of the parts of the model
b.. it helps us to {2:communicate} our model clearly to others
c.. it forms the basis for our model {3:implementation}

To Reproduce

  • Steps to reproduce the behavior:
  1. enter data as above results in the visual representation below in obsidian image
  2. sent to Anki image

Expected behavior in the first batch each line has no newline character but I entered a blank equation as a hack eg
This simulates a newline and my flashcard appears as expected with all three lines image image image

Actual Behaviour in the second section the plugin puts each line in as a separate cloze flashcard image image image

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Would it be possible to change so if text is only separated by one newline that it is treated as a block (similar to first batch above) and if there is more than one newline character it behaves as second batch?

Cheers for all the work. This plugin has been invaluable :)

hidara2000 avatar Aug 09 '22 02:08 hidara2000