GitPedia
developit

developit/preact-markup

:zap: Render HTML5 as VDOM, with Components as Custom Elements!

10 Releases
Latest: 5y ago
2.1.1Latest
developitdevelopit·5y ago·February 4, 2021
GitHub

📋 Changes

  • Bugfix: Render empty attributes as empty instead of "true" (#42, thanks @vpzomtrrfrt!)
2.1.0
developitdevelopit·5y ago·February 4, 2021
GitHub

📋 Changes

  • Add `wrap={false}` prop, which renders multiple children without a wrapping `<div>` (#37, thanks @hpneo!)
  • Add TypeScript definition (#38, thanks @38elements!)
2.0.0Pre-release
developitdevelopit·6y ago·July 15, 2019
GitHub

As of version 2.0.0, `preact-markup` now requires Preact X. ```sh npm i preact-markup@next ```

1.6.0
developitdevelopit·9y ago·September 28, 2016
GitHub

📋 Changes

  • Small change to how bounding whitespace is handled: instead of always stripping it, the default is now to allowing leading/trailing whitespace that falls adjacent to elements. This more closely maps to how HTML treats whitespace.
1.5.2
developitdevelopit·9y ago·September 28, 2016
GitHub

📋 Changes

  • Bugfix: fix case where element without attributes could cause an exception
1.5.1
developitdevelopit·9y ago·September 28, 2016
GitHub

📋 Changes

  • Bugfix: incorrect collapsing of trailing/leading whitespace
1.5.0
developitdevelopit·9y ago·September 28, 2016
GitHub

📋 Changes

  • fixed camelCased props mapping from HTML (#5, thanks @arusanov!)
  • New "trim" option: Collapse whitespace by default, trim all whitespace when `trim="all"`, leave all whitespace present when `trim={false}`
1.4.0
developitdevelopit·10y ago·May 25, 2016
GitHub

📋 Changes

  • Pipe uncought parse errors (e.g.: no `onError` defined) to the browser console (#4)
  • Attempt to use `document.implementation.createHTMLDocument()` when available.
1.3.0
developitdevelopit·10y ago·March 29, 2016
GitHub

📋 Changes

  • `<script>` nodes are now blocked by default
  • Added support for a Boolean `allow-scripts` prop to enable `<script>` nodes
1.2.0
developitdevelopit·10y ago·March 29, 2016
GitHub

📋 Changes

  • Fixed compatibility issue with Preact 4.x