sobjornstad/TiddlyRemember

Katex Chemical equations in Cloze answer not rendering correctly

Closed this issue · 2 comments

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?

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

@PayneGitHub Just checking, did this resolve your issue?