addEmptyLineBetweenElements
このページはまだ翻訳されていません。原文のまま表示しています。
Add empty lines between markdown block elements
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 paragraphAfter:
## Heading
Content here
Another paragraphJSX components and text
Before:
<ExImg src="/test.jpg" alt="test" />
Next paragraphAfter:
<ExImg src="/test.jpg" alt="test" />
Next paragraphLists and code blocks
Before:
Some text
- Item 1
- Item 2
```js
const x = 1;
```
More textAfter:
Some text
- Item 1
- Item 2
```js
const x = 1;
```
More textRevision History
作成更新