Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vincentarelbundock opened this issue Jun 20, 2024 · 2 comments
Open

Comments

@vincentarelbundock
Copy link
Owner

quarto-dev/quarto-cli#10068 (reply in thread)

@grantmcdermott
Copy link
Contributor

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
Copy link
Owner Author

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)
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants