mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 20:07:22 +00:00
d8354618c4
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.
517 B
517 B
% 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}
}