mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-03-15 14:36:31 +01:00
Blank lines immediately above or below a heading are now excluded from MD012's consecutive-blank-line count. Those blank lines are governed by MD022 (blanks-around-headings), so MD012 defers to it. This means users can set MD022's lines_above/lines_below > 1 without triggering spurious MD012 violations.
23 lines
160 B
Markdown
23 lines
160 B
Markdown
# Heading
|
|
|
|
|
|
## Two blank lines above
|
|
|
|
Content.
|
|
|
|
|
|
## Two blank lines above again
|
|
|
|
More content.
|
|
|
|
Text
|
|
|
|
|
|
Text {MD012:15}
|
|
|
|
Text
|
|
|
|
|
|
## Three blank lines above
|
|
|
|
Text
|