mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-04 22:55:43 +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>
39 lines
504 B
Markdown
39 lines
504 B
Markdown
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}
|
|
```
|