It would be good to migrate any provided classes (particularly as they may be Bootstrap classes) to the HTML table `<table>` element when they are present as Pandoc attributes (next to caption input). Here is an example of valid input:

```
| Default | Left | Right | Center |
|---------|:-----|------:|:------:|
| 12      | 12   |    12 |   12   |
| 123     | 123  |   123 |  123   |
| 1       | 1    |     1 |   1    |

: {#tbl-asdf .striped .hover .small tbl-colwidths="[15, 15, 35, 35]"}
```

This is a captionless table (though attributes can still be provided) and the ID, three classes, and the `tbl-colwidths` attribute (already supported) are provided. Note that these must be provided in that general order (id, classes, attributes). Also note that we should be flexible in allowing either `.table-striped` or the shorter `.striped` since we should resolve to the correct Bootstrap class names internally.

A final consideration is that the allowed classes should apply to the entire table (like the ones in the above example) since we will unconditionally apply them to the `<table>` element (and we don't have a sensible means to applying classes elsewhere in a table).

rich-iannone
2023-01-20T18:04:08Z
rich-iannone
enhancement tables
v1.3
closed
Support usage of classes given as Pandoc attributes (provided alongside table captions) 
https://github.com/quarto-dev/quarto-cli/issues/4036