koka-lang / madoko

Madoko is a fast markdown processor for high quality academic and technical articles
Other
394 stars 42 forks source link

Nested replacer doesn't work #32

Open MarvinHannott opened 6 years ago

MarvinHannott commented 6 years ago

I have tried something like this:

~Aligned
E: \vec x &= \vec a  \\
&= ~pmatrix 0\\0\\0  ~
~

Unfortunately, it seems like you couldn't use a replacer inside another replacer.

theCalcaholic commented 6 years ago

You can use a replace in another replacer. However, what you want is a Latex Math environment in which Markdown commands don't work (you have to write plain Latex). This is achieving what you want, I believe:

~ Equation
\begin{aligned}
 E: \vec x &= \vec a \\
 &=
 \begin{pmatrix}
  0\\0\\0
 \end{pmatrix}
\end{aligned}
~

It renders to: madoko_test.pdf