Disabling MD022 for First-Level Headings #153
Replies: 3 comments 10 replies
-
|
Hi @Idobenhamo, I see that markdownlint has support for this, so I don't see a reason to support it in the same way. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Idobenhamo, you can now disable MD022 for first-level headings specifically using per-level configuration. Here's how to configure it in your [MD022]
# Disable blank line requirement above first-level headings (level 1)
# Keep normal requirements for levels 2-6
lines-above = [-1, 1, 1, 1, 1, 1]
lines-below = [1, 1, 1, 1, 1, 1] # Keep normal requirement below all headingsThe array format
If you also want to disable the blank line requirement below first-level headings, you can set: [MD022]
lines-above = [-1, 1, 1, 1, 1, 1]
lines-below = [-1, 1, 1, 1, 1, 1] # Also disable below for level 1(This feature was added in version 0.0.180 and should match markdownlint's behavior.) Let me know if it works as expected! Thanks for the suggestion 👍 |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for all of my questions and thanks again for your amazing work! I searched the docs but couldn't find it. Any chance that the creation of cache folders could be disabled? @rvben |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Any chance that the rule
MD022can be disabled specifically for first-level headings?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions