Document --htmlWhitespaceSensitivity option for Handlebars (#10079)

* Document htmlWhitespaceSensitivity for Handlebars

* Update options.md

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
This commit is contained in:
Cyrille DavidandGeorgii Dolzhykov authored and GitHub committed 2021-01-19 16:49:19 +02:00
1 parent 4273cbf95f
commit 949c36190f
1 file changed
+5 -5
+5 -5
View File
@@ -308,17 +308,17 @@ Valid options:
## HTML Whitespace Sensitivity
_First available in v1.15.0_
_First available in v1.15.0. First available for Handlebars in 2.3.0_
Specify the global whitespace sensitivity for HTML files, see [whitespace-sensitive formatting] for more info.
Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars. See [whitespace-sensitive formatting] for more info.
[whitespace-sensitive formatting]: https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting
Valid options:
- `"css"` - Respect the default value of CSS `display` property.
- `"strict"` - Whitespaces are considered sensitive.
- `"ignore"` - Whitespaces are considered insensitive.
- `"css"` - Respect the default value of CSS `display` property. For Handlebars treated same as `ignore`.
- `"strict"` - Whitespace (or the lack of it) around all tags is considered significant.
- `"ignore"` - Whitespace (or the lack of it) around all tags is considered insignificant.
| Default | CLI Override | API Override |
| ------- | ------------------------------------------------------------------------ | ----------------------------------------------------------------------- |