Open mine-cetinkaya-rundel opened 3 months ago
gt (and great_tables) are setting id
for each column in a table. Example
<th id="mfr" class="gt_col_heading gt_columns_bottom_border gt_left" data-quarto-table-cell-role="th" scope="col">mfr</th>
That is quite surprising as in a HTML document, an id should be unique, so it could create conflict in other usage than in Quarto.
For Quarto, this is a problem as by default, slide title are used for navigation, using title slide as hash in url.
Current workaround
# mfr {#mfr-2}
format:
revealjs:
hash-type: number
I don't know exactly if Quarto should do something here, like detect gt or great table is used, and so something.
It seems like gt or great_tables could just not set id when inside Quarto context, or used a prefix like gt-<colname>
to avoid any conflict. I don't know what those ids are used for ... cc @rich-iannone
Quarto version 1.5.37
If a slide has the same title as the column label of a gt/great_tables table, it's impossible to navigate to that slide. I can't replicate this issue with other table packages I've tried (e.g., knitr or itables).
R / gt
mfr
some text
model
something else
more text
mfr
some text
model
something else
more text