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

~ should not be escaped in href #110

Merged
merged 2 commits into from
Sep 5, 2018
Merged

~ should not be escaped in href #110

merged 2 commits into from
Sep 5, 2018

Conversation

kivikakk
Copy link

@kivikakk kivikakk commented Sep 5, 2018

This isn't dictated by the spec, and it's known to completely break a link in a way that makes the "correct" URL impossible to express with only Markdown: github/markup#311

/cc @BigEd

@kivikakk
Copy link
Author

kivikakk commented Sep 5, 2018

Note that RFC 3986 declares the following:

Characters that are allowed in a URI but do not have a reserved
purpose are called unreserved. These include uppercase and lowercase
letters, decimal digits, hyphen, period, underscore, and tilde.

unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"

We were missing ~.

@kivikakk kivikakk merged commit ea2a07d into master Sep 5, 2018
@kivikakk kivikakk deleted the no-tilde-percent-encode branch September 5, 2018 02:19
talum pushed a commit that referenced this pull request Sep 14, 2021
* test

* fix: do not percent-encode ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant