Anki Forums

Newline command (\\) in Mathjax is broken in the latest versions of Anki

Hello there,
I have recently upgraded to Anki 2.1.40 (I think I had version 2.1.35 before, or even older), and apparently the newline command (\) in Mathjax does not work anymore (no errors, it simply does not produce a line break). I looked at the changelog and it seems that version 2.1.36 comes with Mathjax 3.0, which apparently does not support this command yet.

Has anybody found a workaround, or do I have to reverse back to 2.1.35 to use the command? If someone is aware of a different command that works I am willing to use it, since I don’t have that many cards to fix.

That’s a rather unfortunate omission. Perhaps you could wrap the code in displaylines? The line break(\\) is not work · Issue #2312 · mathjax/MathJax · GitHub

1 Like

Thank you! This workaround does the trick for me. Hopefully it will not be needed in future versions.