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-follow-link-at-point should be customizable for absolute filenames #268

Closed
phst opened this issue Oct 11, 2017 · 1 comment
Closed

Comments

@phst
Copy link
Contributor

phst commented Oct 11, 2017

In a link such as [a](/b), markdown-follow-link-at-point will find the file /b. That's typically not the correct file because such paths are relative to some serving root. I guess their should either be a variable such as markdown-link-file-root or a function variable such as markdown-get-file-for-url-function to customize the behavior.

@jrblevin
Copy link
Owner

Seems like a good idea to me. There is also the issue of file extensions, which comes up with wiki links as well. For wiki links, it is assumed that you want to open a source file with the same extension as the current file. I suppose the same would be preferred here, but it gets tricky when the URL might or might not have an extension. For example, either [a](/b) or [a](/b.html) might correspond to b.md. Given all the possibilities, maybe a function would be better here.

phst added a commit to phst/markdown-mode that referenced this issue Oct 29, 2017
phst added a commit to phst/markdown-mode that referenced this issue Oct 29, 2017
phst added a commit to phst/markdown-mode that referenced this issue Oct 29, 2017
phst added a commit to phst/markdown-mode that referenced this issue Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants