Anki/anki/template
Michal Pokorný (Rai) 331781cf45 Document newly found bug in _removeFormattingFromMathjax
Also adds some comments I wrote to help me understand what's going
on in the code.

I hope to fix this bug myself, but I think it might be beyond what
you can do with Python regexes and might require writing a proper
parser.

So, as step 1, I'm adding in a couple comments explaining that the
bug exists and how to reproduce it.
2019-12-22 05:22:18 +01:00
..
__init__.py use isort to tidy up imports 2019-12-20 19:19:29 +10:00
furigana.py use isort to tidy up imports 2019-12-20 19:19:29 +10:00
hint.py use isort to tidy up imports 2019-12-20 19:19:29 +10:00
LICENSE merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
README.anki merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
template.py Document newly found bug in _removeFormattingFromMathjax 2019-12-22 05:22:18 +01:00
view.py use isort to tidy up imports 2019-12-20 19:19:29 +10:00

Anki uses a modified version of Pystache to provide Mustache-like syntax.
Behaviour is a little different from standard Mustache:

- {{text}} returns text verbatim with no HTML escaping
- {{{text}}} does the same and exists for backwards compatibility
- partial rendering is disabled for security reasons
- certain keywords like 'cloze' are treated specially