5f0bfd41a8
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.
27 lines
407 B
Markdown
27 lines
407 B
Markdown
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}
|
|
```
|