diff --git a/README.md b/README.md index 4acc26fb..a2428d35 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,37 @@ Example: ### Svelte Bracket New Line -Put the `>` of a multiline element on a new line, if possible. Roughly the Svelte equivalent of the [jsxBracketSameLine](https://prettier.io/docs/en/options.html#jsx-brackets) rule. +Put the `>` of a multiline element on a new line. Roughly the Svelte equivalent of the [jsxBracketSameLine](https://prettier.io/docs/en/options.html#jsx-brackets) rule. Setting this to `false` will have no effect for whitespace-sensitive tags (inline elements) when there's no whitespace between the `>` of the start tag and the inner content, or when there's no whitespace after the `>` of the end tag. + +Example: + +```html + +
foo
bar
+
content
+ + +
asd
+ asd
+
+ content +
+ + +
asd
+ asd
+
+ content +
+``` | Default | CLI Override | API Override | | ------- | ---------------------------------- | ------------------------------ |