prettyhtml

💅 The formatter for the modern web https://prettyhtml.netlify.com/

MIT License

Stars
282
Committers
8

Bot releases are hidden (Show)

prettyhtml - Latest Release

Published by StarpTech almost 6 years ago

Bugfix

  • Fix #95 text indentation regression
prettyhtml -

Published by StarpTech almost 6 years ago

Bugfix

Fix https://github.com/Prettyhtml/prettyhtml/issues/90 handle template tags as collapsible elements in whitespace minifying.

prettyhtml -

Published by StarpTech almost 6 years ago

Bugfix

Fix #83. Remove base indentation for embedded content (script, style) and use prettier for type recognization of embedded content

prettyhtml -

Published by StarpTech almost 6 years ago

Bugfix

prettyhtml -

Published by StarpTech almost 6 years ago

Bugfix

Fix https://github.com/Prettyhtml/prettyhtml/issues/74

Features

  • Introduce snapshot testing for prettyhtml-formatter package
  • Rerun formatter on result to ensure that the formatter is stable
prettyhtml -

Published by StarpTech almost 6 years ago

Bugfix

https://github.com/Prettyhtml/prettyhtml/pull/73 Handle <image> as void element.

prettyhtml -

Published by StarpTech almost 6 years ago

Bugfix

#71 use tabWidth config for indent script and style tag

prettyhtml -

Published by StarpTech almost 6 years ago

Features

https://github.com/Prettyhtml/prettyhtml/issues/45 Add a new option wrapAttributes when true it will wrap all attributes when the element has more than one attribute.

prettyhtml -

Published by StarpTech almost 6 years ago

prettyhtml -

Published by StarpTech almost 6 years ago

Bugfix

Handle void elements case sensitive e.g <Input/>

prettyhtml -

Published by StarpTech almost 6 years ago

Bugfix

https://github.com/Prettyhtml/prettyhtml/issues/60 Conditional comment detection

prettyhtml -

Published by StarpTech almost 6 years ago

Add https://github.com/Prettyhtml/prettyhtml/issues/43

Regarding whitespace handling there are two additional rules:

  • Collapses multiple blank lines into a single blank line.
  • Empty lines at the start and end of blocks are removed. (Files always end with a single newline, though.)
prettyhtml -

Published by StarpTech almost 6 years ago

For better vue compatibility it's allowed to use text elements (textarea, script, pre) as void elements.

prettyhtml -

Published by StarpTech almost 6 years ago

For better vuejs compatibility it's allowed to self-close none-void elements.

prettyhtml -

Published by StarpTech almost 6 years ago

Don't add quotes when an attribute has no value

prettyhtml -

Published by StarpTech about 6 years ago

Bugfix

Fail with correct lexer or parser error

prettyhtml -

Published by StarpTech about 6 years ago

Bug fix

Use different branch name for a custom fork of property-information due to yarn limitation.

Miscellaneous

  • Upgrade lerna
  • Run test and build tasks in parallel
prettyhtml -

Published by StarpTech about 6 years ago

Bug fix

Fix https://github.com/Prettyhtml/prettyhtml/issues/42 with a custom branch until maintainer is available to merge https://github.com/wooorm/property-information/pull/13.

prettyhtml -

Published by StarpTech about 6 years ago

Breaking changes

  • prettyhtml() returns a vfile
  • prettyhtml() can throw and returns an error from typevfile-message
  • Files aren't written when fatal errors were found.
  • Update prettyhtml-quick
  • Update typescript types

Bug fixes

prettyhtml -

Published by StarpTech about 6 years ago

Bugfix

Fix https://github.com/Prettyhtml/prettyhtml/issues/46 Don't insert required parents

Badges
Extracted from project README
Build Status lerna npm version