JSPM

  • Created
  • Published
  • Downloads 1773
  • Score
    100M100P100Q140473F
  • License MIT

Hyperscript compatible DSL for creating virtual HAST trees

Package Exports

  • @starptech/prettyhtml-hastscript
  • @starptech/prettyhtml-hastscript/svg

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@starptech/prettyhtml-hastscript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@starptech/prettyhtml-hastscript

Hyperscript compatible DSL for creating virtual HAST trees

Installation

npm install --save @starptech/prettyhtml-hastscript

Caveats

The implementation is a modified version of Hastscript Version 4.0.0

  • Known html attributes aren't handled case-sensitively
  • Don't coerce or optimize attribute values
  • Don't house <template> node through content property. Handle it like any other element.