vincentarelbundock / tinytable

Simple and Customizable Tables in `R`
https://vincentarelbundock.github.io/tinytable
GNU General Public License v3.0
191 stars 13 forks source link

Quarto revealjs: disable CSS themeing added by Quarto and Reveal #284

Open vincentarelbundock opened 2 months ago

vincentarelbundock commented 2 months ago

https://github.com/quarto-dev/quarto-cli/discussions/10068#discussioncomment-9829295

grantmcdermott commented 2 months ago

Watching this in case of downstream impacts. Fwiw we roll our own table CSS in the Quarto RevealJS "clean" theme. https://github.com/grantmcdermott/quarto-revealjs-clean/blob/0aa8273ad7c77b7f6a9d6ba5e9b7abd240bdc335/_extensions/clean/clean.scss#L244-L278

vincentarelbundock commented 2 months ago

https://stackoverflow.com/questions/78659964/add-code-to-html-header-in-quarto-without-modifying-the-preamble/78660732#78660732

You should be able to use `htmltools::htmlDependency()`

Like if I was trying to recreate `knitr::knit_meta_add(list(rmarkdown::html_dependency_font_awesome()))`, I could by:

```r
metadata <- list(htmltools::htmlDependency(
  name ="font-awesome", 
  version = "6.4.2", 
  src = list("fontawesome"), 
  stylesheet = c("css/all.min.css", "css/v4-shims.min.css"), 
  package = "fontawesome", 
  all_files = TRUE))

knitr::knit_meta_add(metadata)