Closed cwickham closed 2 months ago
@cwickham we are adding thead in #421 -- does this look okay for the typst work?
Here's a snapshot showing the new thead placement (note that thead now closes on line 66 in the new code in the diff)
Yeah, that looks great!
Prework
Description
Header rows should always be wrapped in
<thead>
. In particular, this will mean tables output to Typst that break over pages get the header rows repeated on each page.Reproducible example
Consider the following example:
This results in the following (partial) HTML:
If this table is used in Quarto with
format: typst
and is allowed to break over pages, the header rows are not repeated on the second page:QMD
````markdown --- title: "Untitled" format: typst keep-md: true --- ```{=typst} #show figure: set block(breakable: true) ``` ```{python} from great_tables import GT, md, html from great_tables.data import islands gt_tbl = GT(islands) # Show the output table gt_tbl ``` ````Expected result
E.g. in
gt
the header rows are nested inside<thead>
,Then the header rows are repeated on the second page:
Development environment