Releases: rstudio/htmltools
htmltools 0.5.0
-
tags
is now generated by a script which collects all HTML and SVG element tags documented in MDN Web Docs. This feature only appends to the existing set oftags
(#159) -
Removed the Rcpp depedency and the compiled code now uses C rather than C++ (#158)
-
BREAKING CHANGE: Fixed #57, #153:
htmlTemplate
output no longer inserts
extra whitespace around {{...}} replacement values. (#154) -
HTML()
now takes.noWS
argument, which can be used to suppress surrounding
whitespace (similar to the new argument for tags in htmltools 0.4.0). (#154) -
css()
now returnsNULL
instead of""
when no non-empty properties are
specified. (#145) -
save_html(tags$body(...))
no longer results in double tags being
written to the .html file. (Note thatsave_html(tags$html(...))
is not
supported at this time.) (#145) -
Trailing commas now permited in
...
arguments tocss()
,tagList()
, and
the var-arg mutation functions:tagAppendAttributes()
,tagSetChildren()
,
andtagAppendChildren()
. (#145) -
Added
capturePlot
andplotTag
functions, for easily creating image files
and HTML tags (respectively) from plot expressions. (#150) -
Added
parseCssColors
function, for normalizing the various CSS color formats
into #RRGGBB(AA) strings. (#155) -
Fixed #156: Now
extractPreserveChunks()
handles strings contain Emoji Unicode strings correctly on Windows. (#157) -
The
.noWS
parameter for suppressing whitespace can now take an"inside"
value (equivalent toc("after-start", "before-end")
). (#163)
htmltools 0.4.0
-
Fixed #128: Added support for trailing commas in tagLists and the predefined
tags. (#135) -
Added some HTML tag functions to
tags
that were missing. (#111) -
Updated RcppExports for new version of Rcpp. (#93)
-
as.character.shiny.tags()
will handle non-ASCII attributes correctly if they
are not encoded in native encoding. -
Fixed #99:
NA
attributes were sometimes rendered as"NA"
in the HTML,
instead of being blank. (#100) -
The error message for trailing commas in tag functions now provides context
and useful information. (#109) -
Stopped using inline styles to set background color for
save_html
, as doing so
makes it difficult to override using other CSS rules. (#123) -
Added a
.noWS
argument totag()
andtags
which can be used to suppress
the automatically generated whitespace around a particular tag. (#131) -
Added a shim for
system.file()
so that htmltools works withhtmlDependency
objects created by a package that was loaded withdevtools::load_all()
.
(#129) -
validateCssUnit()
now acceptsch
,rem
, andcalc()
. (#134) -
Stopped extra carriage returns from being inserted by
save_html
on Windows.
(#137)