Anki 2.1.56 Release Candidate

Parts of MathJax equations are not rendering correctly. Here, the parentheses around “x” are missing

Even worse, when I move to the next card, press “undo”, then study the card again, this time the MathJax equation does not appear.

I thought this might be related to the JavaScript I was using to define LaTeX macros, but the problem persists after I remove the script from my template. Note that the equation is rendered correctly in the Card Type window.

I have disabled all of my add-ons to make sure that they aren’t causing the problem.

Edit: This might have actually been related to the script I was using. It called MathJax.startup.getComponents(); several times. Changing the code to

if (typeof is_already_run == 'undefined') {
    is_already_run = true
    MathJax.startup.getComponents();
}

and reopening the card study window appears to fix the problem. I’ll create a new post if I see related problems again.