I have a table generated with kableExtra with a footnote that spans over several columns. If I run it separately in R it displays properly. However, when run inside a Quarto document, it constraints the text of the footnote to the width of the 1st column.
Here is a reproducible example
library(kableExtra)dt <- mtcars[1:5, 1:4]# HTML tablekbl(dt, caption = "Demo Table") %>% kable_styling(bootstrap_options = "striped", full_width = F) %>% add_header_above(c(" ", "Group 1" = 2, "Group 2[note]" = 2)) %>% footnote(c("Let's make a very long table footnote"))
Has any one experienced this before, and if so knows how to fix it?