Skip to content

fix(md051): resolve false positives in link fragment validation#136

Merged
ekropotin merged 2 commits into
mainfrom
fix/134-md041-false-positives
Sep 1, 2025
Merged

fix(md051): resolve false positives in link fragment validation#136
ekropotin merged 2 commits into
mainfrom
fix/134-md041-false-positives

Conversation

@ekropotin
Copy link
Copy Markdown
Owner

Significantly improves MD051 rule accuracy by fixing several edge cases that caused false positives:

  • Fixed handling of anchor links starting with '#' character
  • Improved parsing of link fragments with special characters
  • Enhanced validation logic to properly distinguish valid vs invalid links
  • Updated test cases to cover comprehensive scenarios

The rule now correctly validates link fragments while avoiding spurious violations on legitimate markdown constructs.

Fixes #134

🤖 Generated with Claude Code

ekropotin and others added 2 commits August 31, 2025 21:27
Significantly improves MD051 rule accuracy by fixing several edge cases
that caused false positives:

- Fixed handling of anchor links starting with '#' character
- Improved parsing of link fragments with special characters
- Enhanced validation logic to properly distinguish valid vs invalid links
- Updated test cases to cover comprehensive scenarios

The rule now correctly validates link fragments while avoiding
spurious violations on legitimate markdown constructs.

Fixes #134

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

Co-Authored-By: Claude <noreply@anthropic.com>
@ekropotin ekropotin merged commit c53c617 into main Sep 1, 2025
5 checks passed
@ekropotin ekropotin deleted the fix/134-md041-false-positives branch September 1, 2025 04:52
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.

MD051: Fix parity issues with markdownlint reference implementation

1 participant