| id | MDS015 |
|---|---|
| name | blank-line-around-fenced-code |
| status | ready |
| description | Fenced code blocks must have a blank line before and after. |
Fenced code blocks must have a blank line before and after.
- ID: MDS015
- Name:
blank-line-around-fenced-code - Status: ready
- Default: enabled
- Fixable: yes
- Implementation: source
- Category: code
Enable:
rules:
blank-line-around-fenced-code: trueDisable:
rules:
blank-line-around-fenced-code: false# Title
Content here.
```go
fmt.Println("hello")
```# Title
```go
fmt.Println("hello")
```
Content here.| Message | Condition |
|---|---|
fenced code block should be preceded by a blank line |
Previous line is not blank |
fenced code block should be followed by a blank line |
Next line after closing fence is not blank |