Files
pandoc/test/command/latex-math-trailing-space.md
T
Emmanuel Ferdman b106dca069 LaTeX reader: fix spurious paragraph breaks in math environments (#11265)
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>
2025-11-04 09:42:27 +01:00

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}