If the purpose is to style a table with CSS wrapping the table in a div and using a child selector like `div#my-id table` will work fine.
You can put an identifier on part of the capture in the
way you describe, but currently there's no good way to
put an identifier on the Table element itself -- though
the AST now does allow attributes there.
Well, actually, there is one way, but only in commonmark
with the attributes extension:
```
% pandoc -f commonmark_x
{#mytable}
| This | is |
| --- | -- |
| my | table |
<table id="mytable">
<thead>
<tr class="header">
<th>This</th>
<th>is</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>my</td>
<td>table</td>
</tr>
</tbody>
</table>
```
Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> writes:
> Just as headings and sections can take automatic fragment identifiers (and be included in ToCs), has any thought been given (or have I missed) doing the same for tables/captions? Or is the consensus this is best left to the author, as in the example below?
>
> # Results
>
> ::: {style="font: 90% 'Airal', sans-serif;"}
>
> : [Table 1]{#table_spins}: Reddit phrases and automated spins
>
> ...
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3b04ddd1-260e-1a0c-8896-5c8f04b6101f%40reagle.org.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2o88i1q8t.fsf%40Johns-Air.hsd1.ca.comcast.net.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhCG8MeKBnAhVZJWDMh-41f6wHE%2BLJSmTuDVCs%2BOmA_B7g%40mail.gmail.com.