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

Links containing single quote don't work #16

Open
clark800 opened this issue Nov 8, 2023 · 0 comments
Open

Links containing single quote don't work #16

clark800 opened this issue Nov 8, 2023 · 0 comments

Comments

@clark800
Copy link

clark800 commented Nov 8, 2023

This is because of the optional "title" attribute for links.

The spec says "If both link destination and link title are present, they must be separated by spaces, tabs, and up to one line ending." (https://spec.commonmark.org/0.30/#links), so it should be possible to preserve single quotes that come before a whitespace character followed by a quote inside the link parenthesis.

A workaround is to use URL percent-encoding, but this is inconvenient when copying and pasting links.

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

No branches or pull requests

1 participant