Bug#944978: pandoc: fails to convert horizontal rules from markdown to PDF (through LaTeX)
Package: pandoc
Version: 2.5-2+b1
Severity: important
Hello!
I've just encountered a new issue with pandoc.
Since the last upgrade of texlive-* packages
(2019.20190930-1 -> 2019.20191112-1), pandoc is no longer able to
produce a PDF file (through LaTeX) from a markdown file including
horizontal rules.
Steps to reproduce:
$ cat hrule.md
# Some horizontal rules
----------
* * * *
______
$ pandoc hrule.md -o hrule.pdf
Error producing PDF.
! Missing number, treated as zero.
<to be read again>
\protect
l.62 ...enter}\rule{0.5\linewidth}{\linethickness}
It seems that pdflatex does not like the LaTeX code generated by
pandoc:
$ pandoc hrule.md -o hrule.tex
$ grep rule hrule.tex
\hypertarget{some-horizontal-rules}{%
\section{Some horizontal rules}\label{some-horizontal-rules}}
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
\begin{center}\rule{0.5\linewidth}{\linethickness}\end{center}
$ texfot pdflatex hrule.tex
/usr/bin/texfot: invoking: pdflatex hrule.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
! Missing number, treated as zero.
<to be read again>
l.62 ...enter}\rule{0.5\linewidth}{\linethickness}
! Emergency stop.
<to be read again>
l.62 ...enter}\rule{0.5\linewidth}{\linethickness}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on hrule.log.
Please fix this bug and/or forward my bug report upstream.
Thanks for your time.
Bye!
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages pandoc depends on:
ii libatomic1 9.2.1-19
ii libc6 2.29-3
ii libffi6 3.2.1-9
ii libgmp10 2:6.1.2+dfsg-4
ii libpcre3 2:8.39-12+b1
ii pandoc-data 2.5-2
ii zlib1g 1:1.2.11.dfsg-1+b1
pandoc recommends no packages.
Versions of packages pandoc suggests:
pn context <none>
pn ghc <none>
pn groff <none>
pn libjs-mathjax <none>
ii librsvg2-bin 2.44.14-1
pn node-katex <none>
pn nodejs <none>
ii pandoc-citeproc 0.15.0.1-1+b1
ii perl 5.30.0-9
pn php <none>
ii python 2.7.17-1
pn r-base-core <none>
ii ruby 1:2.5.2
ii texlive-latex-extra 2019.20191112-1
ii texlive-latex-recommended 2019.20191112-1
pn texlive-luatex <none>
ii texlive-xetex 2019.20191112-1
pn wkhtmltopdf <none>
-- no debconf information
Reply to: