taylormitchell / ankify_roam

A command-line tool which brings flashcards created in Roam to Anki.
MIT License
36 stars 6 forks source link

Cloze deletions in basic blocks confuse ankify_roam #46

Closed Etyre closed 2 years ago

Etyre commented 2 years ago

Further experimentation has revealed that the bug that I was finding here is more general than I realized, so I'm starting an new ticket.

When you have curly brackets in the answer part (and also maybe in the question part? I didn't check) of a roam block that represents a "basic" format anki card, those curly bracket get "half parsed" as cloze deletions. They don't actually become clozes, but a number gets added to the front of the text inside the brackets.

Like so,

Screen Shot 2022-02-11 at 3 58 01 PM

It would be good if you could put curly brackets in basic cards without this happening.

Etyre commented 2 years ago

I ended up finding a work around for this invoking clever use of spaces and doubling up braces (ie { {example} } instead of of {example}).