Skip to content

Extraneous line break before \begin{align}, \begin{equation}, \begin{eqnarray} #3726

@dataopt

Description

@dataopt

I have the following pandoc markdown:

# This is my book

This is an equation:
\begin{equation}
y+2 = 3
\end{equation}

This is a system of equations:
\begin{align*}
x^2+y^2 & = 2 \\
\sin(y) & = 0.5
\end{align*}

This is Euler's formula:
\begin{eqnarray*}
e^{i\pi} + 1 & = & 0.
\end{eqnarray*}

pandoc outputs the following LaTex with an extra line feed before each of the three environments:

\section{This is my book}\label{this-is-my-book}

This is an equation:

\begin{equation}
y+2 = 3 
\end{equation}

This is a system of equations:

\begin{align*}
x^2+y^2 & = 2 \\
\sin(y) & = 0.5
\end{align*}

This is Euler's formula:

\begin{eqnarray*}
e^{i\pi} + 1 & = & 0.
\end{eqnarray*}

The extra line feed leads to too much gap between the sentence and the environment that follows it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions