Skip to content

Issue rendering chemical reaction system in VSCode #237

@gaurav-arya

Description

@gaurav-arya

MWE (to be run in VSCode):

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:
image
which seems to be due to the ${\lambda}1$ (which is valid LaTeX and accepted by the other mimes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions