JSPM

  • Created
  • Published
  • Downloads 2328
  • Score
    100M100P100Q137689F
  • 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

The implementation is a derivated from ast-util-to-html (Version 4.0.1) with the goal to stringify nodes in a custom way.


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

Modifications

  • Respect printWidth but only for starting tags and it's attributes.
  • Don't encode attribute values
  • Don't escape special characters in text
  • Don't omit value behind boolean attributes