JSPM

  • Created
  • Published
  • Downloads 2354
  • Score
    100M100P100Q138147F
  • License MIT

Hast to html converter

Package Exports

  • @starptech/prettyhtml-hast-to-html

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-hast-to-html) 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-hast-to-html

Hast to HTML converter

Installation

npm install --save @starptech/prettyhtml-hast-to-html

Modifications

  • Consider printWidth
  • Don't encode attribute values
  • Don't escape special characters in text
  • Don't omit value behind boolean attributes

Caveats

The implementation is a modified version of hast-util-to-html.

  • Known html attributes aren't handled case-sensitively