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
Api
node.data.ignore
When this property true
the node is skipped for attribute collapsing.
node.data.preserveAttrWrapping
When this property true
the node is skipped for attribute collapsing.
Caveats
The implementation is a modified version of hast-util-to-html.
- Known html attributes aren't handled case-sensitively
- Consider
printWidth
- Don't encode attribute values
- Don't escape special characters in text
- Don't omit value behind boolean attributes