Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section title with accent leads to MD051 #955

Closed
charlesbouchardlegare-qc opened this issue Sep 5, 2023 · 3 comments
Closed

Section title with accent leads to MD051 #955

charlesbouchardlegare-qc opened this issue Sep 5, 2023 · 3 comments

Comments

@charlesbouchardlegare-qc

A section title with accented character leads to MD051 but it should be valid.

# Title with à accented character

[Link](#title-with-à-accented-character)
3 - MD051 / link-fragments Link fragments should be valid [Context: "[Link](#title-with-à-accented-character)"]

demo

@DavidAnson
Copy link
Owner

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
Copy link
Owner

Documentation (see last paragraph): https://github.com/DavidAnson/markdownlint/blob/main/doc/md051.md

Relevant test cases:

### Valid Heading About L'Hôpital's Rule
### En-tête Valide Dans Français Pour Vérification

@DavidAnson
Copy link
Owner

FYI on why this is newly reported from v0.29.0 to v0.30.0: #954 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants