pandoc/test/command/8219.md
Albert Krewinkel 81e31ee637
LaTeX writer: add label to tables that have an identifier
Tables with an identifier are marked with a `\label`. A caption is
always included in this case, even if the caption is empty.

Closes: #8219
2022-08-17 12:39:07 +02:00

231 B

% pandoc -f html -t latex
<table id="test">
  <tr><td>one</td><td>two</td></tr>
</table>
^D
\begin{longtable}[]{@{}ll@{}}
\caption{}\label{test}\tabularnewline
\toprule()
\endhead
one & two \\
\bottomrule()
\end{longtable}