-
LaTeX auxiliary files (
.aux,.log, etc.) generated while producing PDF output are now written to the output directory instead of the input directory. Previouslylatexmk()ran in the input file's directory, so PDF rendering failed when the input directory was read-only (e.g. in production or Shiny deployments) even whenoutput_dirpointed to a writable location (thanks, @cderv #1975, @siddharthab #1615). -
Fixed a
cannot open file '<name>.tex'error when rendering to PDF with theintermediates_dirargument set. Pandoc wrote the intermediate.texintointermediates_dir, butrmarkdownlooked for it in the input directory. The.texis now resolved to its actual location, and withkeep_tex: truethe retained.texis moved next to the output instead of being left behind inintermediates_dir(thanks, @beerda, #2183). -
HTML output no longer errors when
lib_dirpoints outside the output directory (e.g.lib_dir = "../lib"), so documents in sibling subdirectories can share a single library directory. Such dependencies are now referenced with an up-tree relative path instead of failing with"The path <file> does not appear to be a descendant of <dir>"(thanks, @gaborcsardi #146, @Jonathan-G #1859 #2199). -
The minimum required version of Pandoc is now 2.8 (previously 1.14). Dropping support for Pandoc 1.x and early 2.x allowed a simplification of internal version guards (#2623).
-
Relicensed this package to MIT (thanks, @karangattu, #2615).
-
Fixed a
pandoc: ... openBinaryFile: does not existerror when callingrender()in parallel via a fork cluster. Temp files created byrender()are now tracked per process and cleaned up individually, instead of deleting all files matching thermarkdown-str*.htmlpattern in the sharedtempdir(), which could remove sibling renders' files while Pandoc still needed them (thanks, @gorgitko, #1632). -
Replaced the Pandoc argument
--extract-mediawith a Lua filter to fix the*_files/cleanup regression (thanks, @bastistician, #2620). -
Fixed the bug that the
intermediates_dirargument may delete external input files duringrmarkdown::render()(thanks, @BerndGit, #2619). -
The
html_vignettetemplate now uses a literal YAML block for vignette metadata, preserving the required line breaks between directives (thanks, @t-kalinowski, #2624). -
Bumped the minimum version of knitr to 1.50 to avoid an incompatible combination of knitr (< 1.50) and xfun (>= 0.56), which fails to load because
xfun::attr()was removed in xfun 0.56 (thanks, @jsinnett, #2627). -
Fixed captioned figures disappearing from
ioslides_presentation()output with Pandoc 3, which represents standalone captioned images asFigureelements not handled by the custom writer (thanks, @LeonidasZhak, #2607).