From 25dc0f1a2f2004ed86322ff5f9bf422a4a0ebb24 Mon Sep 17 00:00:00 2001 From: fghjjggghjkgxd-afk <240810486+fghjjggghjkgxd-afk@users.noreply.github.com> Date: Sun, 16 Nov 2025 17:06:25 +0300 Subject: [PATCH] Refactor MD012 documentation for clarity Removed excessive blank lines and cleaned up examples. --- doc/md012.md | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/doc/md012.md b/doc/md012.md index 438c9fa6..ba642240 100644 --- a/doc/md012.md +++ b/doc/md012.md @@ -1,38 +1,19 @@ # `MD012` - Multiple consecutive blank lines - Tags: `blank_lines`, `whitespace` - Aliases: `no-multiple-blanks` - Parameters: - - `maximum`: Consecutive blank lines (`integer`, default `1`) - Fixable: Some violations can be fixed by tooling - This rule is triggered when there are multiple consecutive blank lines in the -document: - -```markdown +document```markdown +Some text her +Some more text here`` +To fix this, delete the offending lines:```markdown Some text here - - -Some more text here -``` - -To fix this, delete the offending lines: - -```markdown -Some text here - -Some more text here -``` - +Some more text here`` Note: this rule will not be triggered if there are multiple consecutive blank lines inside code blocks. - Note: The `maximum` parameter can be used to configure the maximum number of consecutive blank lines. - Rationale: Except in a code block, blank lines serve no purpose and do not affect the rendering of content.