Pandoc adds extra paragraphs

I use pandoc to convert Markdown to latex. My problem is that pandoc adds extra paragraph breaks around start / end environments.

A source:

 **First** phrase in a paragraph. \begin{multline*} some long formulae \end{multline*} Second phrase in a paragraph. 

Running 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. 

It's clear that this is inappropriate behavior due to the extra vertical space that put latex in the resulting PDF when it sees extra blank lines around multline .

Is there a way to suppress extra blank lines in pandoc .tex output?

+6
source share
1 answer

Proper vertical multline


Modification:

 **First** phrase in a paragraph. \empty{ \begin{multline*} some long formulae \end{multline*} } Second phrase in a paragraph. 

analyzes on

 \textbf{First} phrase in a paragraph. \empty{ \begin{multline*} some long formulae \end{multline*} } Second phrase in a paragraph. 
+2
source

Source: https://habr.com/ru/post/975583/


All Articles