[PR #539] [MERGED] Update MD051/link-fragments to support id attributes on non-a elements. #886

Closed
opened 2026-03-03 01:30:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/DavidAnson/markdownlint/pull/539
Author: @MarkLodato
Created: 7/26/2022
Status: Merged
Merged: 7/28/2022
Merged by: @DavidAnson

Base: nextHead: md051-arbitrary-tags-issue-538


📝 Commits (1)

  • 822b345 Update MD051/link-fragments to support id attributes on non-a elements.

📊 Changes

5 files changed (+102 additions, -18 deletions)

View changed files

📝 demo/markdownlint-browser.js (+6 -6)
📝 lib/md051.js (+6 -6)
📝 test/link-fragments.md (+18 -0)
📝 test/snapshots/markdownlint-test-scenarios.js.md (+72 -6)
📝 test/snapshots/markdownlint-test-scenarios.js.snap (+0 -0)

📄 Description

The name is only an anchor on a elements, but id is a universal
attribute on all elements.

Fixes #538.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/DavidAnson/markdownlint/pull/539 **Author:** [@MarkLodato](https://github.com/MarkLodato) **Created:** 7/26/2022 **Status:** ✅ Merged **Merged:** 7/28/2022 **Merged by:** [@DavidAnson](https://github.com/DavidAnson) **Base:** `next` ← **Head:** `md051-arbitrary-tags-issue-538` --- ### 📝 Commits (1) - [`822b345`](https://github.com/DavidAnson/markdownlint/commit/822b345d381b79e24db0fa9faeb803124b2c2dfd) Update MD051/link-fragments to support `id` attributes on non-`a` elements. ### 📊 Changes **5 files changed** (+102 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `demo/markdownlint-browser.js` (+6 -6) 📝 `lib/md051.js` (+6 -6) 📝 `test/link-fragments.md` (+18 -0) 📝 `test/snapshots/markdownlint-test-scenarios.js.md` (+72 -6) 📝 `test/snapshots/markdownlint-test-scenarios.js.snap` (+0 -0) </details> ### 📄 Description The `name` is only an anchor on `a` elements, but `id` is a universal attribute on all elements. Fixes #538. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:30:38 +03:00
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#886
No description provided.