mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
8c55b7b564
when they occur without space surrounding them. E.g. equation, math. This avoids incorrect vertical space around equations. Closes #3309. Closes #2171. See also rstudio/bookdown#358.
53 lines
751 B
Markdown
53 lines
751 B
Markdown
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.
|
|
```
|
|
|