You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Markdownlint: Confusing or contradictory rule - expects empty line 1 vs MD041 requiring H1 #547
changed the title [-]Markdownlint: Contradictory rule - expects empty line 1 vs MD041 requiring H1[/-][+]Markdownlint: Confusing rule - expects empty line 1 vs MD041 requiring H1[/+]on Sep 28, 2025
changed the title [-]Markdownlint: Confusing rule - expects empty line 1 vs MD041 requiring H1[/-][+]Markdownlint: Confusing or contradictory rule - expects empty line 1 vs MD041 requiring H1[/+]on Sep 28, 2025
Activity
konard commentedon Sep 28, 2025
Workarounds
I've tried several approaches to resolve this issue:
1. Fixed .codacy.yml Configuration
Changed from
exclude_patternstoexclude_paths(proper syntax per Codacy docs):2. Added .markdownlint.json
Disabled MD041 globally:
{ "default": true, "MD041": false }3. Prepared YAML Frontmatter Alternative
Created version with YAML frontmatter (which MD041 allows):
[-]Markdownlint: Contradictory rule - expects empty line 1 vs MD041 requiring H1[/-][+]Markdownlint: Confusing rule - expects empty line 1 vs MD041 requiring H1[/+][-]Markdownlint: Confusing rule - expects empty line 1 vs MD041 requiring H1[/-][+]Markdownlint: Confusing or contradictory rule - expects empty line 1 vs MD041 requiring H1[/+]