knitr 1.41
NEW FEATURES
-
Added support for generating Jira tables via
kable(, format = 'jira')
(thanks, @pedropark99 #2180, @mruessler #2024). -
Added a new chunk option
fig.id
. When it isTRUE
, the chunk optionout.extra
will gain anid
attribute for each image from a code chunk in R Markdown (thanks, @jooyoungseo, #2169). By default, the attribute consists of a prefix, the chunk label, and the figure number. See https://yihui.org/knitr/options/ for detailed documentation offig.id
. -
Added an argument
exact
topandoc_to()
andpandoc_from()
to decide whether to use/return the exact Pandoc output/input format name. If not (default), Pandoc extensions will be removed from the format name, e.g.,latex-smart
will be treated aslatex
.
BUG FIXES
-
Plot created outside of
knit()
could sneak intoknit_child()
results (thanks, @niklaswillrich, #2166). -
User-provided background colors for code chunks in
.Rnw
documents may fail (thanks, @nielsrhansen, #2167). -
tabularx
andxltabular
tables should work without captions (thanks, @amarakon, #2188).