rmarkdown 2.6
-
Encoding is correctly handled now in
html_vignette
when checking for identical title and vignette index entry (thanks, @py-b, #1978). -
clean_site()
now default topreview = TRUE
and will no more remove files without notice. This change will affect the "Clean All" button in the "Build" pane for website project.clean_site(preview = FALSE)
must be run to effectively remove files (#1973). -
The intermediate
.tex
file is now correctly deleted ifkeep_tex = FALSE
when the R Markdown document is not rendered from the working directory (thanks, @vqv, #1308). -
Fix a bug causing certain resources files to be deleted as intermediate files when
intermediates_dir
is the same as the input (thanks, @bellma-lilly, #1248). -
Fix issues with
anchor_sections = TRUE
and learnr (thanks, @gadenbuie, #1938). -
Enable use of
server.R
andglobal.R
alongsideruntime: shinyrmd
documents. -
pkg_file_lua()
now works withdevtools::load_all()
and testthat when used in other packages. -
Fix
pandoc_convert(citeproc = TRUE)
not supressing the--natbib
or--biblatex
options (thanks, @atusy, #1932). -
pandoc-citeproc
is now activated if abibliography
field is defined in another YAML block instead of the first YAML block (thanks, @bwiernik, #1364). -
Specify that
htmltools::htmlPreserve()
should use the pandoc raw attribute
rather than preservation tokens when pandoc >= v2.0. Note that this option will
have the intended effect only for versions of htmltools >= 0.5.0.9003. -
anchor_sections
inhtml_documents()
now defaults toFALSE
. It was introduced in previous version with a default toTRUE
, but it is reverted now after hearing feedbacks from the community (thank you!). The#
is still used as the character for the anchor but you can easily change that using CSS rules. Examples have been added to the help page?html_document
. -
Using Pandoc's default for
--email-obfuscation
now. Previously, it was set tonone
explicitly, which is the default for Pandoc 1.17.2+ anyway. Only users with a Pandoc version before 1.17.2 may see a change in the content of the html source file produced if the document contains email addresses. This change allows to pass the Pandoc's command line flag if you want to set it to another value (thanks,@seankross, #1969).output: html_document: pandoc_args: ["--email-obfuscation", "javascript"]
See Pandoc's manual for the meaning of this option.