pandoc/test/command/4254.md
John MacFarlane 615a99c2c2 RST reader: add aligned environment when needed in math.
rst2latex.py uses an align* environment for math in
`.. math::` blocks, so this math may contain line breaks.
If it does, we put the math in an `aligned` environment
to simulate rst2latex.py's behavior.

Closes #4254.
2018-01-14 15:11:11 -08:00

119 B

% pandoc -f rst -t latex
.. math::

   x &= y\\
   y &= z
^D
\[\begin{aligned}
x &= y\\
y &= z
\end{aligned}\]