sobjornstad / TiddlyRemember

Embed Anki notes in your TiddlyWiki
https://sobjornstad.github.io/TiddlyRemember/
MIT License
66 stars 7 forks source link

Katex Chemical equations in Cloze answer not rendering correctly #70

Closed PayneGitHub closed 2 years ago

PayneGitHub commented 2 years ago

Chemical formula typeset using Katex notations and included in Cloze answers do not render correctly in Anki.

For example, this close question with Katex chemical equation in close answer :

<<remembercz "20220709174549335"
    "Water has a chemical formula {$$\ce{H2O}$$}">>

renders incorrectly in Anki:

Water has a chemical formula ( \ce{H2O )}

Where as this cloze question using Katex :

<<remembercz "20220709172833918"
    "Water has a chemical formula {$$H_2O$$}">>

renders correctly:

Water has a chemical formula H2O

Any suggestion on fixing this?

sobjornstad commented 2 years ago

You need to escape the braces, or TiddlyRemember will think the occlusion ends after H2O: https://sobjornstad.github.io/TiddlyRemember/#Escaping%20braces

sobjornstad commented 2 years ago

@PayneGitHub Just checking, did this resolve your issue?