I use pandoc
to convert Markdown to Latex. My problem is that pandoc
adds extra paragraph breaks around begin/end environments.
Source:
**First** phrase in a paragraph.
\begin{multline*}
some long formulae
\end{multline*}
Second phrase in a paragraph.
Doing pandoc my.md -o my.tex
yields:
\textbf{First} phrase in a paragraph.
\begin{multline*}
some long formulae
\end{multline*}
Second phrase in a paragraph.
Clearly this is inappropriate behavior due to extra vertical space put by latex in resulting PDF when it sees extra blank lines around multline
.
Is there a way to suppress extra blank lines in .tex output of pandoc
?
multline
s in LaTeX. – mb21\begin{}...\end{}
is a block element. – mb21pandoc -t native my.md
orpandoc -t json my.md
Notice theRawBlock
? If I'm not mistaken, LaTeX's\begin{}...\end{}
is always a paragraph-making environment as well? – mb21