mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 13:15:51 +00:00
This improves on commit e13aa5c015,
which worked only for recent versions of longtable.
For older versions, we need to define a dummy counter `none`.
Closes #11201. Thanks to @priiduonu for the solution.
31 lines
517 B
Markdown
31 lines
517 B
Markdown
```
|
|
% pandoc -t latex -f html
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span>
|
|
text
|
|
<br />
|
|
text2
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
^D
|
|
{\def\LTcaptype{none} % do not increment counter
|
|
\begin{longtable}[]{@{}
|
|
>{\raggedright\arraybackslash}p{(\linewidth - 0\tabcolsep) * \real{1.0000}}@{}}
|
|
\toprule\noalign{}
|
|
\endhead
|
|
\bottomrule\noalign{}
|
|
\endlastfoot
|
|
\begin{minipage}[t]{\linewidth}\raggedright
|
|
{ text\\
|
|
text2 }\strut
|
|
\end{minipage} \\
|
|
\end{longtable}
|
|
}
|
|
```
|