[GH-ISSUE #601] Update MD051/link-fragments to support ADO wiki anchors #2321

Closed
opened 2026-03-07 20:06:41 +03:00 by kerem · 2 comments
Owner

Originally created by @jason-ha on GitHub (Oct 6, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/601

Azure DevOps preserves capitalization to form anchor names. In VS Code you can Ctrl+click to successfully jump to that part of document, but markdownlint complains about invalid link fragment.

Example:

# Title

...
See also [alternate topic](#Alternate-topic).
...

## Alternate topic

...
Originally created by @jason-ha on GitHub (Oct 6, 2022). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/601 Azure DevOps preserves capitalization to form anchor names. In VS Code you can Ctrl+click to successfully jump to that part of document, but markdownlint complains about invalid link fragment. Example: ``` # Title ... See also [alternate topic](#Alternate-topic). ... ## Alternate topic ... ```
kerem 2026-03-07 20:06:41 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nschonni commented on GitHub (Oct 6, 2022):

The complaint is about the capitalization of the anchor, not the dashes. It should be happy with #alternate-topic

<!-- gh-comment-id:1270757082 --> @nschonni commented on GitHub (Oct 6, 2022): The complaint is about the capitalization of the anchor, not the dashes. It should be happy with `#alternate-topic`
Author
Owner

@DavidAnson commented on GitHub (Oct 18, 2022):

Closing in favor of #605. Current behavior is to enforce "lower-case" because that's what GitHub produces.

<!-- gh-comment-id:1281813521 --> @DavidAnson commented on GitHub (Oct 18, 2022): Closing in favor of #605. Current behavior is to enforce "lower-case" because that's what GitHub produces.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2321
No description provided.