This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
a28e5c94c4
prettier
/
tests
/
html_attributes
/
duplicate.html
2 lines
29 B
HTML
Raw
Normal View
History
Unescape
Escape
feat(html): whitespace-sensitive formatting (#5168) - whitespace-sensitive formatting - respect css `display: block`/`white-space: pre` (data from [`html-styles`](https://github.com/marionebl/html-styles)) - support magic comment (`<!-- display: block -->`) - add an option to specify whitespace sensitivity (`--html-whitespace-sensitivity <css|strict|ignore>`) - magic comments take precedence - (default) `css`: respect default css style (safe in the most cases) - `strict`: every node is considered whitespace sensitive (the safest) - `ignore`: every node is considered whitespace insensitive (dangerous, the original behavior) - inline inline-tags - support ie conditional comment (`<!--[if IE]><![endif]-->`) - indent the script/style content - no inconsistent output for 2+ attributes - force break tag if there're multiline attributes
2018-10-13 08:55:38 +03:00
<
a
href
=
"1"
href
=
"2"
>
123
<
/
a
>