Login  Register

Re: Link versus XRef

Posted by LightGuardjp on Jun 10, 2013; 10:56pm
URL: https://discuss.asciidoctor.org/Re-Link-versus-XRef-tp327.html

I believe an xref is the correct way to do this. A link is for linking to sections or anchors you create, I believe. Sorry for the uncertainly, this isn't something I typically do.


On Mon, Jun 10, 2013 at 3:52 PM, ghillert [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

I am still missing something obvious - I have multiple asciidoc files. Within an asciidoc file, I may link to another asciidoc file. This works fine on Github but when converting the asciidoc files to e.g. HTML the links stop working. It looks like the links are not rewritten to end with *.html. For example, I have the following 2 files:

* index.asiidoc
* Creating-a-Source-Module.asciidoc

I have a link in index.asiidoc:

link:Creating-a-Source-Module[Source Modules]

However, the resulting html is:

...Creating-a-Source-Module

Without the html ending appended. Should I rather use xref?

Thanks!

Cheers,

Gunnar


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



--
Jason Porter
http://en.gravatar.com/lightguardjp