bookdown 0.18
NEW FEATURES
- Added an output format
context_document2
, based on the newly developedrmarkdown::context_document
(see rstudio/rmarkdown#1713, rstudio/rmarkdown#1715, and rstudio/rmarkdown#1725; thanks @jooyoungseo, @atusy, and @RLesur).
BUG FIXES
-
render_book()
works correctly withoutput_dir = "."
now (thanks, @julianre, @cderv, #857). -
Cross-referencing works correctly now with
gitbook
when usingsplit_by: section
orsplit_by: section+number
(thanks, @ThierryO, @cderv, #787). -
When using the Knit-and-Merge approach to compile a book (
new_session: true
in_bookdown.yml
) and the fieldsbefore_chapter_script
and/orafter_chapter_script
are configured in_bookdown.yml
, the original Rmd files are no longer touched (thanks, @clauswilke #405 and @bob-carpenter https://stackoverflow.com/q/50554196/559676), and the scripts specified inbefore/after_chapter_script
are no longer inserted into the Rmd files (they are read and evaluated separately), so the line numbers will be correct in case of knitr errors (thanks, @arencambre, #852).