Skip to content

feat: implement MD009 trailing spaces rule with perfect parity#67

Merged
ekropotin merged 1 commit into
developmentfrom
dev
Aug 13, 2025
Merged

feat: implement MD009 trailing spaces rule with perfect parity#67
ekropotin merged 1 commit into
developmentfrom
dev

Conversation

@ekropotin
Copy link
Copy Markdown
Owner

Complete implementation of MD009 rule matching markdownlint behavior exactly:

  • Add MD009TrailingSpacesTable configuration with br_spaces, list_item_empty_lines, strict parameters
  • Implement line-based analysis with AST caching for performance
  • Support configurable br_spaces for line break detection (default 2)
  • Handle code block exclusions (fenced and indented)
  • Support list_item_empty_lines exception handling
  • Implement strict mode with paragraph detection for actual line breaks
  • Add comprehensive test suite with 15 unit tests covering all scenarios
  • Create test samples and configuration files for validation
  • Achieve 100% parity with markdownlint across all standard cases
  • Add detailed rule documentation

🤖 Generated with Claude Code

Complete implementation of MD009 rule matching markdownlint behavior exactly:

- Add MD009TrailingSpacesTable configuration with br_spaces, list_item_empty_lines, strict parameters
- Implement line-based analysis with AST caching for performance
- Support configurable br_spaces for line break detection (default 2)
- Handle code block exclusions (fenced and indented)
- Support list_item_empty_lines exception handling
- Implement strict mode with paragraph detection for actual line breaks
- Add comprehensive test suite with 15 unit tests covering all scenarios
- Create test samples and configuration files for validation
- Achieve 100% parity with markdownlint across all standard cases
- Add detailed rule documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ekropotin ekropotin enabled auto-merge (squash) August 13, 2025 17:26
@ekropotin ekropotin merged commit 7248932 into development Aug 13, 2025
3 checks passed
@ekropotin ekropotin deleted the dev branch August 13, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant