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

Full support for link abbreviations #64

Closed
jmooring opened this issue Oct 21, 2021 · 2 comments
Closed

Full support for link abbreviations #64

jmooring opened this issue Oct 21, 2021 · 2 comments

Comments

@jmooring
Copy link

It looks like some initial work was done in 1e36b3b in relation to #19.

These links work:

#+link: test1 https://www.google.com/search?=

[[test1:]]
[[test1:tag1]]
[[test1:][description1]]
[[test1:tag1][description1]]

These links fail (the colon is not required to identify an abbreviation):

#+link: test1 https://www.google.com/search?=

[[test1]]
[[test1][description1]]

These also fail (neither %s nor %h is evaluated):

#+link: test2 https://www.google.com/search?q=%s
#+link: test3 https://www.google.com/search?q=%h

[[test2:tag2]]
[[test3:tag3]]

Documentation: https://orgmode.org/manual/Link-Abbreviations.html

Tested against GNU Emacs 26.3

@niklasfasching
Copy link
Owner

Implemented in 9995b3c. Could you have a look at the test cases / try it in the online demo on https://niklasfasching.github.io/go-org/? If it works for you I'll open a PR for hugo

@jmooring
Copy link
Author

@niklasfasching Thank you for your prompt response. This is working perfectly.

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