MathJax Live Preview Error when Equation Includes "\text{\(\)}"

Adding \text{\(\)} within a MathJax equation causes the live preview to show an error.

For example, I have the following code:

But after I close the MathJax editor, the equation shows an error. Reopening the equation editor, I see that \(...\) was changed to <anki-mathjax>...</anki-mathjax>:

1 Like

A workaround is to use \text{$...$} instead, but the live preview should be able to handle \text{\(...\)} because it’s valid LaTeX code.

Added to MathJax tag detection gets confused by nested markers · Issue #2012 · ankitects/anki · GitHub

1 Like