Skip to content

Commit

Permalink
re-arrange news
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Jan 8, 2021
1 parent b0791ea commit 4648dbe
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
htmltools 0.5.1
--------------------------------------------------------------------------------

## New Features & Improvements

* Added a new `tagFunction()` for generating `tags` and/or `htmlDependency()`s conditional on the rendering context. For an example, see `?tagFunction`. (#180)

* `print(as.tags(x))` no longer results in error when `x` is a generic `list()` of tag-like objects. (#181)
* Closed #104: `save_html()`'s `file` argument now properly handles relative paths. (@haozhu233, #105, #192)

* `save_html()` now has a `lang` parameter that can be used to set the lang attribute of `<html>`. (@ColinFay, #185)

* Closed #104: `save_html()`'s `file` argument now properly handles relative paths. (@haozhu233, #105, #192)

* Closed #101: `htmlDependency` & `renderDependencies` now allow the `script` argument to be given as a named list containing the elements: `src`, `integrity`, `crossorigin`. (@matthewstrasiotto, #188)

* Closed #189: `validateCssUnit()` now accepts `fit-content`. (#190)

* BREAKING CHANGE: Closed #161: `parseCssColors(x)` now requires `x` to be a character vector and an error is no longer thrown when `mustWork = FALSE` and `x` contains `NA` value(s). (#194)

* `htmlPreserve()` can now optionally use the Pandoc `raw_attribute` extension to enclose HTML.

## Breaking Changes

* Closed #161: `parseCssColors(x)` now requires `x` to be a character vector (it no longer accepts a `list()` of strings) and an error is no longer thrown when `mustWork = FALSE` and `x` contains `NA` value(s). (#194)

## Bug fixes

* `print(as.tags(x))` no longer results in error when `x` is a generic `list()` of tag-like objects. (#181)


htmltools 0.5.0
--------------------------------------------------------------------------------

Expand Down

0 comments on commit 4648dbe

Please sign in to comment.