mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #955] Section title with accent leads to MD051 #2415
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#2415
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 @charlesbouchardlegare-qc on GitHub (Sep 5, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/955
A section title with accented character leads to MD051 but it should be valid.
demo
@DavidAnson commented on GitHub (Sep 5, 2023):
GitHub's implementation translates accented characters into their URI encoded form - in this case "%C3%A0". (You can confirm this by looking at what's generated by the little anchor tag for that link on GitHub.) If you use that expanded form for your link, no warning is generated. This rule looks for that canonical form to be used and is behaving correctly here.
https://dlaa.me/markdownlint/#%25m%23%20Title%20with%20%C3%A0%20accented%20character%0A%0A%5BLink%5D(%23title-with-%25C3%25A0-accented-character)%0A
@DavidAnson commented on GitHub (Sep 5, 2023):
Documentation (see last paragraph): https://github.com/DavidAnson/markdownlint/blob/main/doc/md051.md
Relevant test cases:
github.com/DavidAnson/markdownlint@c2c4a44931/test/link-fragments.md (L126-L128)@DavidAnson commented on GitHub (Sep 6, 2023):
FYI on why this is newly reported from
v0.29.0tov0.30.0: https://github.com/DavidAnson/markdownlint/issues/954#issuecomment-1707634031