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

Opening link containing close parenthesis truncates the link #408

Closed
aplaice opened this issue Jul 21, 2019 · 2 comments
Closed

Opening link containing close parenthesis truncates the link #408

aplaice opened this issue Jul 21, 2019 · 2 comments

Comments

@aplaice
Copy link

aplaice commented Jul 21, 2019

Expected Behavior

  1. Create a markdown file with the following contents:
[foo](https://commons.wikimedia.org/wiki/Category:SVG_locator_maps_of_continents_(location_map_scheme)_(Winkel_3_projection))
  1. Left-click on the link (either on foo or the link itself).

  2. The full URL (https://commons.wikimedia.org/wiki/Category:SVG_locator_maps_of_continents_(location_map_scheme)_(Winkel_3_projection)) is opened in a browser.

Actual Behavior

A URL is opened in the browser, but it's truncated just before the first close parenthesis (i.e. in the above case the URL https://commons.wikimedia.org/wiki/Category:SVG_locator_maps_of_continents_(location_map_scheme is opened.

Steps to Reproduce

emacs -Q --load ~/.emacs.d/elpa/markdown-mode-20190305.319/markdown-mode.el test-case.md

where test-case.md contains:

[foo](https://commons.wikimedia.org/wiki/Category:SVG_locator_maps_of_continents_(location_map_scheme)_(Winkel_3_projection))

or a more minimal:

[foo](https://example.com/())

Backtrace

None

Software Versions

  • Markdown Mode: From MELPA (20190305), version 2.4-dev
  • Emacs: 27.0.50 (or 24.5.1)
  • OS: Ubuntu 16.04

Further information

Interestingly, font lock is correctly applied to the entire URL and the popup when hovering over "foo" also shows the whole URL. (#170).

Finally, thank you for the really useful mode!

@syohex
Copy link
Collaborator

syohex commented Apr 29, 2020

Thanks for reporting issue . I have fixed at #455. Please check latest version.

@syohex syohex closed this as completed Apr 29, 2020
@aplaice
Copy link
Author

aplaice commented Apr 30, 2020

It works correctly now. Thank you very much!

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