0.1.2 • Published 4 years ago

gformat-hast-to-html v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

gformat-hast-to-html

Hast to HTML converter

Installation

npm install --save gformat-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