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

Long links #19

Closed
ghost opened this issue Jan 4, 2020 · 2 comments
Closed

Long links #19

ghost opened this issue Jan 4, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jan 4, 2020

I have some long links that I would like to wrap somehow. I posted on the
Org Mode mailing list and it was suggested I could use angle brackets:

[fn:23] Plain URIs are recognized only for a well-defined set of schemes. See
External Links. Unlike URI syntax, they cannot contain parenthesis or white
spaces, either. URIs within angle brackets have no such limitation.

https://github.com/bzg/org-mode/blob/master/doc/org-manual.org#footnotes

Like this:

<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/
String/lastIndexOf>

or link abbreviations like this:

#+LINK: js https://developer.mozilla.org/docs/Web/JavaScript/Reference/

[[bugzilla:Global_Objects/String/lastIndexOf]]

https://gnu.org/software/emacs/manual/html_node/org/Link-abbreviations

However neither of these methods seem to work with Go-Org:

$ cat sunday.org
<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/
String/lastIndexOf>

#+LINK: js https://developer.mozilla.org/docs/Web/JavaScript/Reference/

[[js:Global_Objects/String/lastIndexOf]]

$ go-org sunday.org html
<p>
&lt;https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/
String/lastIndexOf&gt;
</p>
<p>
<a href="js:Global_Objects/String/lastIndexOf">js:Global_Objects/String/
lastIndexOf</a>
</p>
@niklasfasching
Copy link
Owner

Not supported yet and not high on my todo list. PRs very welcome - otherwise let's just leave this open so i don't forget about it.

@niklasfasching niklasfasching added the enhancement New feature or request label Jan 6, 2020
@niklasfasching
Copy link
Owner

Implemented in 1e36b3b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant