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.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/bdbfaa4e-8889-4eec-9831-9901eb39e20f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.