downlit
Syntax highlighting and automatic linking of R code to documentation
downlit's HTML contract was set in 0.4.0; every release since tracks R itself.
◆Recent moves
- 2y ago
Parsing simplified for R 4.0 to avoid a UTF-8 crash
Falls back to a simpler parsing algorithm on R 4.0 to avoid crashing on certain UTF-8 characters. A defensive fix, and the most recent activity in the visible window.
View source ↗ - 3y ago
Fix for upcoming R-devel
A single fix to stay compatible with the then-upcoming R-devel. Characteristic of the package's post-0.4.1 cadence.
View source ↗ - 4y ago
highlight() no longer errors on uninstalled packages
Stops highlight() erroring when a package it infers to be attached is not installed, and corrects linking for requireNamespace(). Robustness fixes on the paths pkgdown exercises most.
View source ↗ - 4y ago
Base pipe |> highlighted; per-line spans match pandoc
Adds highlighting for the base pipe, gives every line and every multi-line token its own span to match pandoc's structure, and stops truncating very long tokens. Together with a run of autolink corrections, this finished the output overhaul 0.4.0 began.
View source ↗ - 4y ago
Highlighting restructured into r-in/r-out/r-msg CSS classes
Rebuilds the highlighting output around a class taxonomy, wrapping each line as input, output, plot, message, warning or error, and minimises the default styling of conditions so themes can restyle them. This is the release that defined the HTML contract pkgdown themes have targeted ever since.
View source ↗ - 5y ago
Vignette autolinking and forced highlighting via div class
Teaches autolinking to resolve vignette(foo) against attached packages and lets any pre block be highlighted by wrapping it in a downlit-classed div. Both address cases where the surrounding document made highlighting hard to trigger.
View source ↗