@wayowe/prettyhtml-hast-to-html

0.10.3 • Public • Published

@wayowe/prettyhtml-hast-to-html

Hast to HTML converter

Installation

npm install --save @wayowe/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

Package Sidebar

Install

npm i @wayowe/prettyhtml-hast-to-html

Weekly Downloads

0

Version

0.10.3

License

MIT

Unpacked Size

24 kB

Total Files

21

Last publish

Collaborators

  • suiga