pandoc/test/command/2378.md
John MacFarlane 5f0bfd41a8 LaTeX writer: add () after booktabs rules.
These commands take optional arguments with () and [],
which can lead to problems if the content of the table
cell begins with these characters.

Closes #8001.
2022-03-30 10:07:09 -07:00

407 B

Ensure that we don't get duplicated footnotes when a note occurs in a header cell and \endfirsthead is used.

% pandoc -t latex
| x | y[^fn] |
|-|-|
|1|2|
: a table

[^fn]: a footnote
^D
\begin{longtable}[]{@{}ll@{}}
\caption{a table}\tabularnewline
\toprule()
x & y\footnote{a footnote} \\
\midrule()
\endfirsthead
\toprule()
x & y{} \\
\midrule()
\endhead
1 & 2 \\
\bottomrule()
\end{longtable}