[GH-ISSUE #581] MD051/link-fragments false error with user-specified heading anchor #461

Closed
opened 2026-03-03 01:27:07 +03:00 by kerem · 2 comments
Owner

Originally created by @misterbisson on GitHub (Sep 14, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/581

  • Error message: content/intro/use-cases/index.md:20:5 MD051/link-fragments Link fragments should be valid [Context: "[Personally identifiable information (PII)](#pii)"]
  • Offending line: - [Personally identifiable information (PII)](#pii)
  • Target heading: ## Personally identifiable information (PII) {#pii}

The target heading uses common markdown syntax to specify the id/anchor string for a heading.

Originally created by @misterbisson on GitHub (Sep 14, 2022). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/581 - Error message: `content/intro/use-cases/index.md:20:5 MD051/link-fragments Link fragments should be valid [Context: "[Personally identifiable information (PII)](#pii)"]` - Offending line: ` - [Personally identifiable information (PII)](#pii)` - Target heading: `## Personally identifiable information (PII) {#pii}` The target heading uses common markdown syntax to specify the id/anchor string for a heading.
kerem 2026-03-03 01:27:07 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nschonni commented on GitHub (Sep 14, 2022):

Duplicate of https://github.com/DavidAnson/markdownlint/issues/570 maybe

<!-- gh-comment-id:1247083185 --> @nschonni commented on GitHub (Sep 14, 2022): Duplicate of https://github.com/DavidAnson/markdownlint/issues/570 maybe
Author
Owner

@DavidAnson commented on GitHub (Sep 14, 2022):

Agree this looks like a duplicate; Gitiles syntax is not CommonMark. @misterbisson, I will close this, unless you disagree.

<!-- gh-comment-id:1247191420 --> @DavidAnson commented on GitHub (Sep 14, 2022): Agree this looks like a duplicate; Gitiles syntax is not CommonMark. @misterbisson, I will close this, unless you disagree.
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#461
No description provided.