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

New rule proposal: no URL-encoded links #910

Open
queengooborg opened this issue Jul 17, 2023 · 0 comments
Open

New rule proposal: no URL-encoded links #910

queengooborg opened this issue Jul 17, 2023 · 0 comments
Labels

Comments

@queengooborg
Copy link

queengooborg commented Jul 17, 2023

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%A9s would 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 %20 is actually a good case of where HTTP encoding should be used. Maybe a configurable allow list should be a thing?

@DavidAnson DavidAnson changed the title New rule proposal: no HTTP-encoded links New rule proposal: no URL-encoded links Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants