Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add table ID to LaTeX output #8219

Closed
tarleb opened this issue Aug 7, 2022 · 0 comments
Closed

Add table ID to LaTeX output #8219

tarleb opened this issue Aug 7, 2022 · 0 comments

Comments

@tarleb
Copy link
Collaborator

tarleb commented Aug 7, 2022

The identifier of a table is lost when converting to LaTeX, making it impossible to reference and crosslink to the table from within the document.

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

The hypertarget should probably be added to the caption if one exists, or elsewhere in the table if the caption is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant