htmltools 0.5.1
New Features & Improvements
-
Added a new
tagFunction()for generatingtagsand/orhtmlDependency()s conditional on the rendering context. For an example, see?tagFunction. (#180) -
Closed #104:
save_html()'sfileargument now properly handles relative paths. (@haozhu233, #105, #192) -
save_html()now has alangparameter that can be used to set the lang attribute of<html>. (@ColinFay, #185) -
Closed #101:
htmlDependency&renderDependenciesnow allow thescriptargument to be given as a named list containing the elements:src,integrity,crossorigin. (@matthewstrasiotto, #188) -
Closed #189:
validateCssUnit()now acceptsfit-content. (#190) -
htmlPreserve()can now optionally use the Pandocraw_attributeextension to enclose HTML.
Breaking Changes
- Closed #161:
parseCssColors(x)now requiresxto be a character vector (it no longer accepts alist()of strings) and an error is no longer thrown whenmustWork = FALSEandxcontainsNAvalue(s). (#194)
Bug fixes
print(as.tags(x))no longer results in error whenxis a genericlist()of tag-like objects. (#181)