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

Cannot follow link: Point is not at a Markdown link or URL #430

Closed
cyrus-and opened this issue Feb 12, 2020 · 8 comments
Closed

Cannot follow link: Point is not at a Markdown link or URL #430

cyrus-and opened this issue Feb 12, 2020 · 8 comments

Comments

@cyrus-and
Copy link

Expected Behavior

The link should open.

Actual Behavior

An error is generated:

Point is not at a Markdown link or URL

Steps to Reproduce

  1. Create a .md file with:

    ---
    
    [link](https://example.com)
    
    ---
    
  2. Click on link or C-c C-o while the point is on it (the error is Nothing to follow at point in this case).

Software Versions

  • Markdown Mode: From MELPA 2.4-dev
  • Emacs: GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-12-04
  • Emacs: GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-23, modified by Debian
  • OS: Debian GNU/Linux 10
@saf-dmitry
Copy link
Contributor

I think the problem is that your link is in a YAML metadata block.

@cyrus-and
Copy link
Author

I think too, but the example is a perfectly fine Markdown file where --- is the horizontal rule.

@saf-dmitry
Copy link
Contributor

If you have --- at the BOF, it starts a YAML metadata block continuing until the next line containing only --- or ....

@cyrus-and
Copy link
Author

Yes, what I meant was that links in YAML metadata block should behave as regular links IMHO because there is no mention of YAML in the Markdown specs AFAIK.

@syohex
Copy link
Collaborator

syohex commented Apr 29, 2020

I have merged #456. Please check latest version.

@syohex syohex closed this as completed Apr 29, 2020
@cyrus-and
Copy link
Author

@syohex the C-c C-o part is now fixed, thanks! But clicking on the link still yields the same behavior.

@syohex
Copy link
Collaborator

syohex commented Apr 30, 2020

@cyrus-and I have merged #463. Please check latest version.

@cyrus-and
Copy link
Author

@syohex great! Everything works fine now, thank you.

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

3 participants