pandoc/test/command/3113.md
John MacFarlane b263f38304 LaTeX reader: improve mathEnvWith.
When converting e.g. an align environment to an aligned environment
inside a Math element, we need to include a newline before the
`\end{aligned}`, since the previous line might end in a comment.

Closes #8122.
2022-06-13 23:14:51 -06:00

288 B

% pandoc -f latex -t native
\begin{eqnarray}
A&=&B,\\
C&=&D,\\
%\end{eqnarray}
%\begin{eqnarray}
E&=&F
\end{eqnarray}
^D
[ Para
    [ Math
        DisplayMath
        "\\begin{aligned}\nA&=&B,\\\\\nC&=&D,\\\\\n%\\end{eqnarray}\n%\\begin{eqnarray}\nE&=&F\n\\end{aligned}"
    ]
]