summaryrefslogtreecommitdiff
path: root/test/command/3309.md
blob: 083ac53c92a5424d0d02d5b3aef6e3048b1b3f17 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Certain environments should be treated as inline unless they
are surrounded by blank lines:

```
% pandoc -t latex --wrap=preserve
Lorem ipsum dolor sit amet,

\begin{equation}
E = mc^2,
\end{equation}

consectetur adipiscing elit.
^D
Lorem ipsum dolor sit amet,

\begin{equation}
E = mc^2,
\end{equation}

consectetur adipiscing elit.
```

```
% pandoc -t latex --wrap=preserve
Lorem ipsum dolor sit amet,
\begin{equation}
E = mc^2,
\end{equation}
consectetur adipiscing elit.
^D
Lorem ipsum dolor sit amet,
\begin{equation}
E = mc^2,
\end{equation}
consectetur adipiscing elit.
```

```
% pandoc -t latex --wrap=preserve
The formula
\begin{math}
x = y
\end{math}
should be inline.
^D
The formula
\begin{math}
x = y
\end{math}
should be inline.
```