gformat-hast-to-html

0.1.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    18
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    18

Package Sidebar

Install

npm i gformat-hast-to-html

Weekly Downloads

18

Version

0.1.2

License

MIT

Unpacked Size

26.7 kB

Total Files

21

Last publish

Collaborators

  • a.marucci