mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #504] MD022: Allow configuration of surrounding blank lines per heading level #2261
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#2261
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lud on GitHub (Mar 1, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/504
So we could be able to customize the layout of the markdonw file for readability. It is a way to mimic the line-height of headings in HTML.
The options would allow to configure how much blank lines we want before and after headings, just as the current implementation, but also to override that setting for specific headings levels, like
h2.For instance, here is a configuration that gives a nice layout (to my personal taste of course):
h1h2, 2 belowWhat do you think?
@DavidAnson commented on GitHub (Mar 1, 2022):
Possible implementation: https://github.com/DavidAnson/markdownlint/issues/503#issuecomment-1051109028