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

Why is id in link before table instead of on table itself #11

Closed
vincerubinetti opened this issue Feb 4, 2019 · 2 comments
Closed

Why is id in link before table instead of on table itself #11

vincerubinetti opened this issue Feb 4, 2019 · 2 comments
Labels

Comments

@vincerubinetti
Copy link

The output of tablenos seems to put the id/anchor to the table in a <a> tag preceding the table instead of in the <table> element itself. I was wondering what the reason is for that, and if there's a way to configure the plugin to remedy that.

I get output that resembles this:

<a name="tbl:bowling-scores"></a>
<table>
<caption><span>Table 1:</span> Bowling scores</caption>
<thead>
<tr class="header">
...
</tr>
</thead>
<tbody>
<tr class="odd">
...
</tr>
<tr class="even">
...
</tr>
<tr class="odd">
...
</tr>
</tbody>
</table>
@tomduck
Copy link
Owner

tomduck commented May 16, 2019

Hi, Vincent.

After looking into it, we have a similar problem here to what we found with figure ids in pandoc-fignos. Pandoc's table type is currently unattributed, so there is no way for me to pass id information on to pandoc. My workaround was to place an anchor immediately before the table.

Cheers,
Tom

@tomduck
Copy link
Owner

tomduck commented May 16, 2019

I'm going to close this because it follows our earlier exchange, but please feel welcome to reopen it if there is more discussion to be had. --Tom

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

No branches or pull requests

2 participants