diff options
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/latex-math-trailing-space.md | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/command/latex-math-trailing-space.md b/test/command/latex-math-trailing-space.md new file mode 100644 index 000000000..6502b120a --- /dev/null +++ b/test/command/latex-math-trailing-space.md @@ -0,0 +1,38 @@ +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} +``` |
