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 with parenthesis parsed incorrectly #418

Open
gbiryukov opened this issue Jan 18, 2022 · 1 comment
Open

Links with parenthesis parsed incorrectly #418

gbiryukov opened this issue Jan 18, 2022 · 1 comment

Comments

@gbiryukov
Copy link

Links url looses part after parenthesis when url itself contains parenthesis.
Brackets () and [] are valid in URIs but have specific purposes hence they are not encoded by standard encode functions.

Given markdown

[link title](https://example.com/?query=(foo)bar)

Gives

<a href="https://example.com/?query=(foo">link title</a>bar)

Expected

<a href="https://example.com/?query=(foo)bar">link title</a>
@abeatricecti
Copy link

I also have this issue.

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

2 participants