Many thanks!
I can confirm that Pandoc 2.0 (dev) renders this without the additional newlines, as shown below. Note, however, that there are now
two linebreaks fewer before and after the environment, respectively (compared to the old output), so that the entire environment is now inlined with the rest of the LaTeX source. pdflatex does not seem to take issue with this and renders it correctly, but I wanted to point it out nevertheless. Note also: inserting an extra newline before and after in the Markdown source would result in
two extra linebreaks before and after, i.e. the old (undesired) behaviour.
Also, thank you for developing Pandoc. Besides being conceptually interesting, I find it incredibly useful for my day-to-day work.
Testing environment \begin{align}
i^2&=-1\\
x &= 0
\end{align} for whitespace.
On Tuesday, 3 October 2017 22:43:32 UTC+2, John MacFarlane wrote:
The dev version of pandoc will not give you a blank line
in this case -- it knows that equation environments can
occur inline.