rmarkdown 1.16
-
The
pandoc-citeproc
binary can now be found correctly on Windows. This fixes an issue withpandoc_citeproc_convert()
(thanks @cderv, #1651). -
Added
self_contained
argument tohtml_vignette
to keep intermediate directory ifself_contained = FALSE
(thanks, @cderv, #1641). -
It is now possible to add pagebreak in HTML, Word, LaTeX, and ODT documents using the
\newpage
or\pagebreak
command in an Rmd file. This is possible thanks to the Pandoc's pagebreak lua filter. Seevignette("lua-filters", package = "rmarkdown")
(thanks, @cderv, #1626). -
The Pandoc extension
ascii_identifiers
is no longer enabled by default. If you still need it, you may use the argumentmd_extensions = "+ascii_identifiers"
in the output format function. However, please note that this will trigger an error in a future version of Pandoc. -
Output formats can be configured by arbitrary YAML files, which used to be restricted to
_output.yml
or_output.yaml
. They can be specified via theoutput_yaml
argument ofrender()
or theoutput_yaml
top-level parameter of YAML front matter, and the first existing one will be used. Ifoutput_yaml
is specified both forrender()
and YAML front matter, thenrender()
has the priority. If none are found, then_output.yml
or_output.yaml
will be used if they exist (thanks, @atusy, #1634). -
Added a Pandoc lua filter to convert fenced Divs to LaTeX environments when the output format is
latex
orbeamer
. Basically a fenced Div::: {.NAME data-latex="[OPTIONS]"}
is converted to\begin{NAME}[OPTIONS] \end{NAME}
in LaTeX. The attributedata-latex
must be provided, even if it is an empty string (meaning that the LaTeX environment does not have any optional arguments). For example,::: {.verbatim data-latex=""}
generates averbatim
environment, and::: {.minipage data-latex="{.5\textwidth}"}
generates\begin{minipage}{.5\textwidth}
. This lua filter was originally written by @RLesur at yihui/bookdown-crc#1. It will allow users to create custom blocks that work for both HTML and LaTeX output (e.g., info boxes or warning boxes). -
Added
keep_html
argument togithub_document
so to save a preview HTML file in a working directory (thanks, @atusy, #1650).