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

Encode link URIs before rendering into Gemtext #51

Merged
merged 2 commits into from Jan 13, 2022

Conversation

tdemin
Copy link
Owner

@tdemin tdemin commented Dec 25, 2021

This makes gmnhg encode link destinations before rendering them into Gemtext according to RFC 3986. This fixes spaces in links in particular.

Fixes #49.

Introduces two new questions:

  • whether or not gmnhg should skip invalid URIs (in the initial version of this PR, it does);
  • whether or not all URIs must be encoded.

@tdemin tdemin added enhancement New feature or request renderer Issue related to the Gemtext renderer rfc Up to discussion labels Dec 25, 2021
@tdemin tdemin added this to the 0.5.0 milestone Dec 25, 2021
This makes gmnhg encode link destinations before rendering them into
Gemtext according to RFC 3986. This particularly fixes spaces in links.

Fixes #49.
@tdemin
Copy link
Owner Author

tdemin commented Jan 13, 2022

Looks like URI escaping works more or less as expected with both Lagrange and Amfora.

@tdemin tdemin merged commit 5f755e4 into master Jan 13, 2022
@tdemin tdemin deleted the bugfix/spaces_in_links branch October 22, 2022 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request renderer Issue related to the Gemtext renderer rfc Up to discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Escape URIs in links
1 participant