I just started trying out Quarto. I am adding a table in an html document and I do not want it to extend over the whole width of the page. The following code (using package kableExtra) works for an html document rendered in RMarkdown, as per Create Awesome HTML Table with knitr::kable and kableExtra
DE3 <- data.frame(q_text = c("Female", "Male"),
cnt = c(20,17),
percentage = c(54.1, 45.9))
DE3 %>% kable(col.names = c("What is your gender?", "Count", "Percentage")) %>%
kable_paper(bootstrap_options = "striped", full_width = FALSE)
However, in Quarto the table remains full width (no warnings or error messages). I have searched the Quarto documentation but could not find anything on this topic.