aboutsummaryrefslogtreecommitdiff
path: root/test/command/latex-math-trailing-space.md
blob: 6502b120a6f02df1ed0c1a0a54ac821ad87fecdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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}
```