tagAddRenderHook() for delaying modification of a tag object until it is rendered. A list of render-time hooks may also be added via the new
.renderHook argument added to all
tag() functions. (#215)
Closed #251: Added
.cssSelector parameters to tag modifying functions such as
.cssSelector allows you to target particular (inner) tags of interest. See
tagAppendChildren() for examples. (#224)
When retrieving a tag attribute using
NA values will be removed before combining remaining attribute values. If all attribute values are
NA, then a single
NA value will be returned. (#212)
htmlPreserve() can now optionally use the Pandoc
raw_attribute extension to enclose HTML.
Removed the Rcpp depedency and the compiled code now uses C rather than C++ (#158)
save_html(tags$body(...)) no longer results in double
tags being written to the .html file. (Note that
save_html(tags$html(...)) is not supported at this time.) (#145)
plotTag functions, for easily creating image files and HTML tags (respectively) from plot expressions. (#150)
parseCssColors function, for normalizing the various CSS color formats into #RRGGBB(AA) strings. (#155)
.noWS parameter for suppressing whitespace can now take an
"inside" value (equivalent to
c("after-start", "before-end")). (#163)
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.
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)
Stopped extra carriage returns from being inserted by
save_html on Windows. (#137)
restorePreserveChunks() marks the output with the correct encoding now (UTF-8).
Length-0 attributes are now dropped, like NULLs. (#65)
htmlDependency() gained a new argument
all_files to indicate whether all files under the src directory should be copied when rendering dependencies, or only those specified in the dependency objects. (#48)
copyDependencyToDir() will always completely overwrite the target directory when copying HTML dependency files to make sure all dependency files are definitely updated in the target directory when the original dependency directory has been updated. In the past, the dependency files were not updated if they already existed. (#36)
Performance improvement rendering tags, by switching from
Allow HTML content to include UTF-8, Latin1, and system encoded content. All will be converted to UTF-8 using enc2utf8() at render time. (#21)
Explicit library(htmltools) is no longer required for tags to be rendered in knitr/rmarkdown documents.
Added “viewer” parameter to html_print.