Link to some URL defined ahead in the document

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
suy
Reply | Threaded
Open this post in threaded view
|

Link to some URL defined ahead in the document

suy
Hello.

I think this is something probably already asked, and probably reported
already, but I can't find it in the issue tracker.

I often use long URLs, so using an attribute for them is great:

--
:homepage: http://asciidoctor.org

Check out {homepage}[Asciidoctor]!
--

But, I would like to be able to define the URL afterwards, and I think it's
what other people might like as well (at least some of the times), and is the
only feature I would pick from Markdown. Something like this:

https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#links

So, what do you think? Is this reported somewhere else?

Thank you!

--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net

Reply | Threaded
Open this post in threaded view
|

Re: Link to some URL defined ahead in the document

mojavelinux
Administrator
I agree. I do this now for all URIs. I prefer to prefix the attributes so I know that it refers to a URI.


Check out {uri-home}[Asciidoctor].

-Dan

p.s. Of course, if you prefer to call them URLs, then use the url- prefix. (See http://www.bernzilla.com/item.php?id=100)

On Sun, May 7, 2017 at 2:28 AM, suy [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello.

I think this is something probably already asked, and probably reported
already, but I can't find it in the issue tracker.

I often use long URLs, so using an attribute for them is great:

--
:homepage: http://asciidoctor.org

Check out {homepage}[Asciidoctor]!
--

But, I would like to be able to define the URL afterwards, and I think it's
what other people might like as well (at least some of the times), and is the
only feature I would pick from Markdown. Something like this:

https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#links

So, what do you think? Is this reported somewhere else?

Thank you!

--
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Link-to-some-URL-defined-ahead-in-the-document-tp5580.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux