-
Added a wizard in
roam()
to create new.Rmd
/.md
/.R
files with selected HTML features. -
Added a new engine
embed
to embed text files via a code chunk. -
Changed the meaning of the chunk option
order
: previously, higher values indicate earlier execution; now higher values indicate later execution. This is a breaking change, but the new meaning should feel more natural. For example,order = i
means to execute the chunk in the i-th step, andorder = i - 1.5
means to move the chunk back 1.5 step in the queue so it will be executed earlier than its previous chunk. See https://yihui.org/litedown/#sec:option-order for details. -
Shortened the output format names
litedown::html_format
tohtml
, andlitedown::latex_format
tolatex
. The nameslitedown::*
can still be used if you like. -
Added options
dollar
,signif
, andpower
to format numbers from inline code. See https://yihui.org/litedown/#sec:inline-code for details. -
When embedding SVG images in HTML output, embed their raw XML content instead of base64 encoding them.
-
Empty table headers are removed in HTML output (they may be generated from data frames or matrices without column names).
-
Added support for the chunk option
collapse = TRUE
(thanks, @J-Moravec, #40). -
Added support for the chunk option
fig.dim
, which is a shortcut forfig.width
andfig.height
. -
Added a new function
vest()
as another way to add CSS/JS assets to HTML output. -
Provided templates and a Github action
yihui/litedown/site
to build package websites. See https://yihui.org/litedown/#sec:pkg-site for details. -
Added an argument
examples
topkg_manual()
to run examples and show their output (thanks, @TimTaylor, #54). -
Fixed a bug that the default CSS wouldn't be added when a math expression exists on the page (thanks, @calvinw, #61).
-
Fixed a bug that cross-references to other chapters of a book could not be resolved when previewing a single chapter.
-
Fixed a bug that the file navigation by line numbers on code blocks stopped working in
litedown::roam()
due to yihui/lite.js@5e06d19. -
Fixed a bug that
R
code blocks could not be embedded when using prism.js for syntax highlighting (thanks, @TimTaylor, #53). -
pkg_manual()
will point out the name of the problematic Rd file when the Rd file fails to convert to HTML (thanks, @BSchamberger). -
Dropped knitr and rmarkdown from the
Suggests
field inDESCRIPTION
. Previously, litedown allowedrmarkdown::render()
to use the output formatslitedown::html_format
andlitedown::latex_format
. Nowrmarkdown::render()
is no longer supported, andlitedown::fuse()
must be used instead.