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

markdown-link-at-pos is confused by parentheses in the url #762

Closed
cacology opened this issue May 16, 2023 · 2 comments
Closed

markdown-link-at-pos is confused by parentheses in the url #762

cacology opened this issue May 16, 2023 · 2 comments

Comments

@cacology
Copy link

Expected Behavior

Clicking on a link in the form ![Text](url(par).png "label") should find-file on url(par).png.

Actual Behavior

Clicking on that link instead creates a new file named url(par).png "label"

Steps to Reproduce

The issue seems to be markdown-link-at-pos which is confused by parentheses within the url.

  1. Type ![Text](url(par).png "label"), then
  2. position the point within the text, and then
  3. call (nth 3 (markdown-link-at-pos (point))). This returns:
#("url(par).png \"label\"" 0 3 (face [... a variety of face information I'm omitting.]))

Software Versions

  • Markdown Mode: markdown-mode, version 2.6-alpha
  • Emacs: GNU Emacs 29.0.90 (build 1, aarch64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3.1 (a) (Build 22E772610a)) of 2023-05-10
  • OS: 13.3.1 (a) (22E772610a)
@syohex
Copy link
Collaborator

syohex commented May 17, 2023

I have merged #763. Please check latest version.

@syohex syohex closed this as completed May 17, 2023
@cacology
Copy link
Author

Fixed! Thank you very much, @syohex

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