jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.78k stars 3.39k forks source link

Extra Blank Line Between List Items When Converting LaTeX to Markdown #10396

Closed tsunyinlam closed 1 day ago

tsunyinlam commented 1 day ago

When converting a LaTeX file containing a simple itemize environment to Markdown using Pandoc 3.5 on macOS, extra blank lines are introduced between list items. Given the following LaTeX input:

\begin{itemize}
    \item a
    \item b
\end{itemize}

and command pandoc test.tex -o test.md I get

-   a

-   b

I expected to get the following instead.

-    a
-    b
jgm commented 1 day ago

LaTeX doesn't distinguish between "tight" and "loose" lists, so we make it loose.