pandoc/test/command/2378.md
John MacFarlane 6a077ac9c7 Fixed footnotes in table captions.
Note that if the table has a first page header and a
continuation page header, the notes will appear only
on the first occurrence of the header.

Closes #2378.
2017-06-20 11:21:32 +02:00

433 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}\tabularnewline
\midrule
\endfirsthead
\toprule
x & y{}\tabularnewline
\midrule
\endhead
1 & 2\tabularnewline
\bottomrule
\end{longtable}