CRAN release: 2022-07-05
CRAN release: 2022-06-24
CRAN release: 2021-10-29
Messages, warnings, and errors now get a much more minimal style. Messages are styled the same way as output; and warnings and errors only style the “Warning” or “Error” text. This makes these types of output easier to read, and easier for package developers to style themselves.
The overall structure of the syntax highlighting has been overhauled. Now each line is wrapped in a
r-out(output printed to console),
r-err(errors). Additionally, the prompt (
#>) is wrapped in a
<span class="r-pr">. Altogether, these changes should give much more flexibility for styling with CSS (#90).
ANSI escapes no longer generate invalid HTML (#79).
Changes to better support for HTML widgets and rgl in pkgdown (@dmurdoch, #78). In particular,
evaluate_and_highlight()now returns an additional attribute containing all extra dependencies needed to render the returned HTML.
In code blocks, custom infix operators are now autolinked (#89). In inline code, infix operators are no longer autolinked; this lead to too many false positives. You can still link with (e.g.)
Inline calls with arguments (e.g.
foo(1, 2)) are no longer auto-linked, as intended and documented (#82).
vignette(foo, package = "pkg")no longer errors if
pkgis not installed (#85).
Unusual help calls (e.g.
help(a$b)), no longer generate errors (#77).
Rare warning about incomplete final line in
autolink_url("pkgname::foo")is now suppressed (@dmurdoch, pkgdown#1419).
Auto-linking is more likely to succeed when the remote package is not installed as downlit now looks for the URL using
tools::CRAN_package_db()for CRAN packages, and and
available.packages()for packages installed from non-CRAN repos (@ARawles, #108).
CRAN release: 2020-11-04
vignette(foo), downlit now looks for a vignette named foo in the packages it knows to be attached (#61).
Can now force highlighting of any
<pre>by wrapping it inside a
class = "downlit". This is useful in cases where it may otherwise be hard to set the class of the
\u2029is converted to
\033to make it possible to preserve ANSI escapes when passed through xml2.
No longer errors on library calls with named but empty arguments.
CRAN release: 2020-09-25