Hi everyone, I’m having an issue with cards that use MathJax in Anki, and I can’t figure out what’s going wrong.
Cards that include MathJax are not rendering correctly. When I click on the card editor of an open card, sometimes the MathJax equations get rendered, but this only happens inconsistently. Often, only the second text field (answer side) gets rendered properly (after I opened the editor - not in the first place), while the first field (question side) doesn’t display the MathJax at all.
What I’ve Tried:
I launched Anki in Safe Mode (no add-ons), but the issue still persists.
I sent the deck to a friend, and they were able to reproduce the issue on a different machine.
Here’s my current Anki setup:
Version: 24.06.3 (d678e393)
Python: 3.9.18
Qt: 6.6.2
PyQt: 6.6.1
OS: Windows 11 Pro
I have a link for a video showing the problem and a link to the deck that I’ve used. Unfortunately I cannot share links or add attachments in this forum, maybe someone has another idea how I could share the files.
I believe I am experiencing something similar. It seems like the first time something latex is displayed, it will be correct, and all subsequent times the rendering is absent or partial.
I see that if I now use \( and \) that it is automatically replaced with <anki-mathjax></anki-mathjax> and this seems to work consistently if I remove the script section.
Is it necessary export, regex, reimport?
Further edit: my original cards still continue to work as-is on AnkiDroid.