-
html_document
(andhtml_document_base
)'stheme
parameter now understandsbslib::bs_theme()
objects/arguments, meaning that one may opt-into Bootstrap 4 and more easily create custom themes. For examples, see #1706, and for context, see https://rstudio.github.io/bslib/ (thanks, @cpsievert, #1706). -
Files with
.scss
/.sass
extension (i.e., Sass files) provided tohtml_document
'scss
parameter are now compiled to CSS using the{sass}
package. Also, iftheme
is a{bslib}
object, these Sass files may utilize Sass code inside thetheme
(thanks, @cpsievert, #1706). -
Fix an issue with line numbering in code chunks when
.numberlines
with Pandoc's highlighting (thanks, @aosavi, #1876). -
Fix an issue with shiny runtime and
global.R
(thanks, @liaojiahui-r, rstudio/flexdashboard#298). -
Accept
latex="{options}"
,latex=1
, orlatex=true
for Latex Divs. -
Add
output_format_filter
function todefault_site_generator()
. Enables custom site generators to customize or even entirely replace the output format right before rendering of each page. -
Automatically exclude renv directory for
render_site()
(thanks, @jmbuhr, #1996) -
Do not force
options(htmltools.preserve.raw = TRUE)
when this option has been set, otherwise it is impossible for other packages to turn this option off, e.g., yihui/xaringan#293. -
knitr_options_pdf()
will now throw a warning whenfig_crop = TRUE
but is disabled because required toolspdfcrop
and/orghostscript
are missing (thanks, @netique, #2016). -
Eliminated the unnecessary padding in code blocks in the
html_document
output with Bootstrap 4 themes (thanks, @atusy, #2019). -
github_document()
will produce a working TOC even if some headers start with number (#2039). -
Fix an issue with
knit_print.data.frame
. The...
arguments are no more passed toprint()
to avoid passingknit_print()
argumentsoptions
andencoding
to customprint()
methods (#2047).