badlydrawnrob / anki

Learn to code with Anki — flashcards and themes for all learning levels. Master your programming language of choice!
MIT License
719 stars 61 forks source link

Adding a cloze deletion to a fenced `code block` error #124

Closed badlydrawnrob closed 7 months ago

badlydrawnrob commented 7 months ago

Use the Anki editor to add cloze deletion tags

  1. Toggle HTML Editor ⌘⇧X (‹›) to enable rich text preview
  2. Highlight the text that you'd like to convert to a cloze.
  3. Press the [...] or [...]+ button to add the cloze deletion

Our fenced code block compiles: Wraps the {{c1::cloze deletion}} tag in HTML Breaks the cloze deletion and gives an error.

Anki complains with compiled {{c1::cloze}}

Screenshot 2024-01-29 at 17 18 25 Screenshot 2024-01-29 at 17 18 46

Doesn't happen with plain text code block

Screenshot 2024-01-29 at 17 19 33