pandoc-3.14: test/command/4558.md
```
% pandoc -f html -t latex
<table class="repeat-caption">
<caption>Repeated caption.</caption>
<thead><tr><th>one</th><th>two</th></tr></thead>
<tbody><tr><td>1</td><td>2</td></tr></tbody>
</table>
^D
\begin{longtable}[]{@{}ll@{}}
\caption{Repeated caption.}\tabularnewline
\toprule\noalign{}
one & two \\
\midrule\noalign{}
\endfirsthead
\caption[]{Repeated caption.}\tabularnewline
\toprule\noalign{}
one & two \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
1 & 2 \\
\end{longtable}
```
```
% pandoc -f html -t latex
<table class="repeat-caption">
<caption>Repeated caption.</caption>
<tbody><tr><td>one</td><td>two</td></tr></tbody>
</table>
^D
\begin{longtable}[]{@{}ll@{}}
\caption{Repeated caption.}\tabularnewline
\toprule\noalign{}
\endfirsthead
\caption[]{Repeated caption.}\tabularnewline
\toprule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
one & two \\
\end{longtable}
```
```
% pandoc -f html -t latex --table-caption-position=below
<table class="repeat-caption">
<caption>Repeated caption.</caption>
<thead><tr><th>one</th><th>two</th></tr></thead>
<tbody><tr><td>1</td><td>2</td></tr></tbody>
</table>
^D
\begin{longtable}[]{@{}ll@{}}
\toprule\noalign{}
one & two \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\tabularnewline
\caption[]{Repeated caption.}
\endfoot
\bottomrule\noalign{}
\tabularnewline
\caption{Repeated caption.}
\endlastfoot
1 & 2 \\
\end{longtable}
```