goessner / markdown-it-texmath

Support TeX math equations with your Markdown documents.
MIT License
156 stars 28 forks source link

change line issue #6

Closed jdily closed 6 years ago

jdily commented 6 years ago

Hi, I am wondering how to insert a change line in math environment? I am using delimeter $$ and want to write a two line equation. However, the symbol // just broke the mathmode..

thx for help 👍

goessner commented 6 years ago

seems to be a KaTeX issue ... should work in aligned environment.

jdily commented 6 years ago

thx for the reply. hmmm, I fail to use aligned in the markdown + math plugin for visual studio...

jdily commented 6 years ago

ah I just figure it out seems my vs code is bit outdated... thx a lot for pointing out the possible solution :)

goessner commented 6 years ago

yes ...

$$
\begin{aligned}
    x &= y^2 \\
    x &= z + 2^t
\end{aligned}
$$

should work as expected ...