mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #910] New rule proposal: no URL-encoded links #548
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#548
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 @queengooborg on GitHub (Jul 17, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/910
This rule came to mind when running into a Prettier bug with links that have HTTP encoding in them. It would be awesome to see a rule that prevents HTTP encoding within links -- since browsers automatically re-encode links as needed, it would also help with readability when looking at the raw Markdown.
For example,
/fr/docs/Web/JavaScript/Tableaux_typ%C3%A9swould be disallowed and must be converted to/fr/docs/Web/JavaScript/Tableaux_typés.(I can also see the possibility of a configuration option that inverts this rule, so that links must be HTTP encoded, but in a world where Unicode exists, I doubt this option would have much benefit.)
Edit: I realize that
%20is actually a good case of where HTTP encoding should be used. Maybe a configurableallowlist should be a thing?@drewmullen commented on GitHub (Feb 14, 2025):
This is what I was hoping for. Terraform modules display their README in the Terraform registry. Links that are internal only
[see here](./here.png)break when displayed in the registry.