reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
872 stars 86 forks source link

Cloze with Latex containing curly brackets not working #156

Open Schabolon opened 1 year ago

Schabolon commented 1 year ago

Describe the bug A card which should contain some latex code with {} won`t get rendered in Anki.

To Reproduce

Expected behavior It should generate a card with a cloze containing a (correct) latex

Markdown used

`Test: {1:${c}$} #card`

Anki <p>Test: {{c1::<anki-mathjax>{c}}</anki-mathjax>}</p> There are two brackets in the mathjax-environment (therefore it does not get rendered)

nzuchna commented 1 year ago

If this bug could be fixed, that would be absolutely great!

nzuchna commented 1 year ago

Thanks for the awesome plugin btw, helps me out so much. I use it almost everyday.