mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #676] Showing a warning about url encoded special characters when linking to headings #502
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#502
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Breigner01 on GitHub (Dec 12, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/676
So basically I have something like this in a markdown:
Which looks something like this:
Build & Run
I first realized that I couldn't use the ampersand character in the link but encoding it for URL works.
The slight "issue" if we can say so, is that markdownlint shows a warning because it thinks the link is not right but the markdown preview plugin that I'm using rightfully redirects to the right heading.
It would be nice to see this plugin interpret URL-encoded characters.
@DavidAnson commented on GitHub (Dec 12, 2022):
MD051 enforces the GitHub algorithm as described here: https://github.com/DavidAnson/markdownlint/blob/next/doc/md051.md
That algorithm removes punctuation which leads to:
Which produces no errors when linted: https://dlaa.me/markdownlint/#%25m%23%20Build%20%26%20Run%0A%0A-%20%5BBuild%20%26%20Run%5D(%23build--run)%0A