bookdown 0.10
NEW FEATURES
-
Added an argument
clean_highlight_tags
tohtml_document2()
(thanks, @atusy, #706). -
For HTML output formats such as
gitbook
, the abstract title (if the abstract is provided) can be customized via the fieldabstract-title
in the YAML frontmatter (thanks, @XiangyunHuang, #715).
BUG FIXES
-
Split reference sections in
gitbook
ignored the sorting definition of the citation style (thanks @GegznaV #661, @crsh #674). -
For the
gitbook
output format, the content doesn't get the focus when the page is loaded, which makes it fail to respond to keystrokes such as PageUp/PageDown/Up/Down (thanks, @darshanbaral #691, @aronatkins #699). -
For the
gitbook
output format, when searching for keywords in code blocks, the automatic scroll to keywords doesn't work (thanks, @colearendt, #700). -
The search keyword no longer persists across page loads for different books in the
gitbook
format (thanks, @aronatkins, #695). -
The keybindings
Up
andDown
(orEnter
) in the search input of thegitbook
output format work across all pages now; previously they only work on the current page (thanks, @dsblank, #657). -
When performing searching, the
gitbook
sidebar will only display relevant TOC items that actually take users to the HTML pages containing the search keyword. Previously, some TOC items do not really take users to the search destination but an anchor on a page instead, which can be confusing (thanks, @aronatkins, #696). -
Hyphenated words will be correctly highlighted in the search results now if spaces are used in the search keyword instead of dashes, e.g., you can search for
hand-off
using the keywordhand off
(thanks, @aronatkins, #701). -
When
rmd_files
is configured in_bookdown.yml
,render_book()
will fail if the output format is not HTML or LaTeX (thanks, Ladislas Nalborczyk, https://stackoverflow.com/q/56061122/559676). -
The colon after figure/table numbers is missing in Word and EPUB output (thanks, @upton9265, #618).
-
Multiple labels on the same line are allowed for Word output (thanks, @mdlincoln @h-k-kan @brooksambrose, #538).
MINOR CHANGES
-
Added alt/hover text to icons on the
gitbook
toolbar (thanks, @aronatkins, #698). -
Added an Information button to the
gitbook
toolbar to show the keybindings that are otherwise difficult for users to discover without reading the bookdown book (thanks, @aronatkins, #697). -
Added information about the keybindings Enter/Up/Down to the placeholder text and tooltip of the search input in
gitbook
output (thanks, @pyltime, #660).