mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
Previously, a math environment with extra space before the `\end` would get rendered with a blank line, which LaTeX treats as a paragraph break. Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
504 B
504 B
Test that trailing spaces before \end{equation} don't create spurious paragraph breaks:
% pandoc -f latex -t latex
\begin{equation}
a
\end{equation}
^D
\begin{equation}
a
\end{equation}
Same for align environment:
% pandoc -f latex -t latex
\begin{align}
x &= y \\
\end{align}
^D
\begin{align}
x &= y \\
\end{align}
Test with multiple trailing spaces:
% pandoc -f latex -t latex
\begin{equation}
a + b
\end{equation}
^D
\begin{equation}
a + b
\end{equation}