[GH-ISSUE #726] MD051: Allow link fragments to kramdown block IAL and span IAL ids #2368

Open
opened 2026-03-07 20:07:07 +03:00 by kerem · 1 comment
Owner

Originally created by @randallpittman on GitHub (Feb 23, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/726

Related: #570

kramdown lets you give ids to blocks and spans with the inline attribute list syntax. It would be great to not have false positives for MD051 when linking to an id of this syntax.

Example syntax


This is the paragraph I want to link to.
{:#the-paragraph-id}

Later on, I'd like to link the [the paragraph I wrote earlier](#the-paragraph-id).

Originally created by @randallpittman on GitHub (Feb 23, 2023). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/726 Related: #570 kramdown lets you give ids to blocks and spans with the [inline attribute list syntax](https://kramdown.gettalong.org/syntax.html#block-ials). It would be great to not have false positives for MD051 when linking to an id of this syntax. Example syntax ```markdown This is the paragraph I want to link to. {:#the-paragraph-id} Later on, I'd like to link the [the paragraph I wrote earlier](#the-paragraph-id). ```
Author
Owner

@DavidAnson commented on GitHub (Feb 24, 2023):

Thanks for the related link. This doesn't look too bad to allow. It's funny these two systems don't even agree on the same syntax for this - tho it's pretty clear they knew about each other.

<!-- gh-comment-id:1442594516 --> @DavidAnson commented on GitHub (Feb 24, 2023): Thanks for the related link. This doesn't look too bad to allow. It's funny these two systems don't even agree on the same syntax for this - tho it's pretty clear they knew about each other.
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#2368
No description provided.