You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Latexify, LaTeXStrings
latex_string = L"\begin{align*}
\require{mhchem}
\ce{ A &->[${\lambda}1$] B}
\end{align*}"
latexify(rn) |> s -> render(s, MIME("juliavscode/html"))
latexify(rn) |> s -> render(s, MIME("image/png"))
Here, latex_string is the LaTeX output of a Catalyst chemical reaction: see SciML/Catalyst.jl#566 for further discussion. The PNG output renderes correctly, but the juliavscode/html option (which is the default in VSCode) displays an error:
which seems to be due to the ${\lambda}1$ (which is valid LaTeX and accepted by the other mimes).
The text was updated successfully, but these errors were encountered:
One needs to open up VSCode, create a file with content equal to that MWE, and run that file by pressing the triangle in the top right.
I agree it's probably a MathJax error. I posted it here because the juliavscode/html handling logic is in the source code of this repository -- do all the other MIME types not use MathJax? If so, then I guess it's just a bug with MathJax itself.
MWE (to be run in VSCode):
Here,
latex_string
is the LaTeX output of aCatalyst
chemical reaction: see SciML/Catalyst.jl#566 for further discussion. The PNG output renderes correctly, but thejuliavscode/html
option (which is the default inVSCode
) displays an error:which seems to be due to the
${\lambda}1$
(which is valid LaTeX and accepted by the other mimes).The text was updated successfully, but these errors were encountered: