Can I ask for advice about how to replicate some formatting we developed in Bookdown?

We were using the `kableExtra` package to tweak the formatting of tables, so it differed in HTML and PDF output.  Specifically, we were using a custom table output function like this:

```
﻿﻿ketable <- function(df, caption) {
    rt <- kableExtra::kable(df, caption = caption, booktabs = T)
    if (knitr::is_latex_output()) {
        return(kableExtra::kable_styling(rt, latex_options = 'scale_down'))
    }
    # See https://cran.r-project.org/web/packages/kableExtra/vignettes/awesome_table_in_html.html
    # Update table-style.html to match
    kableExtra::kable_paper(rt,
                            lightable_options = c("striped", "hover"),
                            latex_options = c("striped", "scale_down"),
                            full_width = F,
                            position = "center"
    )
}
```

with some custom CSS to make our HTML tables look nice.  Is there an equivalent way to tweak table formatting in Quarto?   How can we make it differ according to output format (HTML or PDF)?
2021-08-03T09:41:13Z
matthew-brett
closed
Advice for formatting according to output
https://github.com/quarto-dev/quarto-cli/issues/75