Skip to content

Latex - Equation environment in markdown does not work #141905

@ahudde

Description

@ahudde

The formula

\begin{equation}
\begin{split}
a = b \\
c = c
\end{split}
\end{equation}

does not compile, but instead shows

ParseError: Katex parse error: Expected & or \ or \cr or \end at end of input: ...= c \end{split}

\end{equation}

In Jupyter Notebook, this works well.

Environment data

  • VS Code version: 1.63.2
  • Jupyter Extension version (available under the Extensions sidebar): v2021.11.1001550889
  • Python Extension version (available under the Extensions sidebar): v2021.12.1559732655
  • OS (Windows | Mac | Linux distro) and version: XXX
  • Python and/or Anaconda version: 3.9.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jupyter server running: Local | Remote | Local

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releaseimportantIssue identified as high-prioritynotebook-markdownverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions