sgr_to_html
optionally
converts CSI SGR to classes instead of inline styles (h/t @hadley).sgr_to_html
is more
disciplined about emitting unnecessary HTML (h/t @hadley).sgr_256
: Display all 256 8-bit colors.in_html
: Easily output HTML in a web page.make_styles
: Easily produce CSS that matches 8-bit colors.nchar(..., type='width')
for C0-C1 control characters
in R 4.1.split.nl
option
to set_knit_hooks
to mitigate white space issues when using blackfriday for
the markdown->html conversion (@krlmlr).ctl
parameter to most functions. Some functions such as strip_ctl
had existing
parameters that did the same thing (e.g. strip
, or which
), and those have
been deprecated in favor of ctl
. While technically this is a change in the
API, it is backwards compatible (addresses
#56 among and other things).*_sgr
version of most *_ctl
functions.nzchar_ctl
gains the ctl
parameter.strsplit_ctl
can now work
with ctl
parameters containing escape sequences provided those sequences
are excluded from by the ctl
parameter.sgr_to_html
so that
it can handle vector elements with un-terminated SGR sequences (@krlmlr).strwrap_ctl
when
indent/exdent/prefix/initial widths vary from first to second line.strwrap2_*(..., strip.spaces=FALSE)
, including a bug when
wrap.always=TRUE
and a line started in a word-whitespace boundary.term.cap
parameter to unhandled_ctl
.fansi::set_knit_hooks
makes it easy to automatically convert ANSI CSI SGR
sequences to HTML in Rmarkdown documents. We also add a vignette that
demonstrates how to do this.strsplit
.substr
behavior starting with
R-3.6.strsplit_ctl
.Initial release.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.