Skip to content

Releases: syntax-tree/hast-util-to-html

4.0.1

18 Jul 18:52
Compare
Choose a tag to compare
  • 4e8b5c8 Fix bug in non-boolean attributes being collapsed

4.0.0

17 Jul 16:25
Compare
Choose a tag to compare
  • 665a075 Add support for SVG
  • baac1a8 Add support for minifying doctypes
  • 3eb520f Change doctype to lowercase
  • 3e56862 Refactor code-style
  • 0ad3fbb Add Contribute section to readme.md

3.1.0

24 Jul 16:35
Compare
Choose a tag to compare
  • 8e241c6 Add support for compiling <template>s content

3.0.1

20 Jun 09:38
Compare
Choose a tag to compare

3.0.0

06 Nov 17:27
Compare
Choose a tag to compare
  • 1474eb0 Remove character-data, directive support

2.1.0

25 Jul 22:17
Compare
Choose a tag to compare

2.0.1

06 Jul 20:22
Compare
Choose a tag to compare
  • Fix accidental entities (5ba3a4e)

2.0.0

03 Jul 10:45
Compare
Choose a tag to compare
Rewrite algorithm
Changes
  • Output less entities in places where they aren’t needed
Features
  • quote — Preferred attribute quote to use
  • quoteSmart — Use other quote if shorter
  • preferUnquoted — Use no quotes if shorter
  • omitOptionalTags
  • collapseEmptyAttributes
  • tightSelfClosing — No space before slash in void elements
  • tightCommaSeparatedLists
  • tightAttributes — No space between quoted attributes
  • allowParseErrors — Smaller size by allowing parse errors
  • allowDangerousCharacters — Smaller size by opening up XSS vectors
Bugs
  • Fix stringification of numeric data attribute (data-123 instead of data123)
Refactor
  • Refactor code-style
  • Rewrite tests
  • Remove superfluous dot-files

1.0.0

18 Jun 11:09
Compare
Choose a tag to compare

🎉