R Shiny: withMathJax does not recognize \begin and \end

Viewed 13

I need to render a matrix using withMathJax. While withMathJax works for formulas such as $$e^{i \pi} + 1 = 0$$, it does not recognize matrices.

When I tried withMathJax(helpText('$$\begin{bmatrix}a\\b\end{bmatrix}$$')), I receive an error message that "Error : '\e' is an unrecognized escape in character string starting "'$$\begin{bmatrix}a\b\e".

Does anyone know how to fix it? Thank you in advance.

0 Answers
Related