addEmptyLineBetweenElements
Add a single empty line between markdown block elements (headings, paragraphs, lists, code blocks, JSX components, etc.).
Options
| Property | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Enable/disable this rule |
Config
{
"addEmptyLineBetweenElements": {
"enabled": true
}
}
Examples
Headings and paragraphs
Before:
## Heading
Content here
Another paragraph
After:
## Heading
Content here
Another paragraph
JSX components and text
Before:
<ExImg src="/test.jpg" alt="test" />
Next paragraph
After:
<ExImg src="/test.jpg" alt="test" />
Next paragraph
Lists and code blocks
Before:
Some text
- Item 1
- Item 2
```js
const x = 1;
```
More text
After:
Some text
- Item 1
- Item 2
```js
const x = 1;
```
More text