Login  Register

Portable, rendering-agnostic link? #2

Posted by ChrLipp on Oct 29, 2013; 2:47pm
URL: https://discuss.asciidoctor.org/Portable-rendering-agnostic-link-2-tp903.html

I am using asciidoctor-gradle-plugin in version 0.7. Since 0.7 is not working on Windows (and 0.6 is not working anyway) and I need Asciidoctor 0.1.4 I am running asciidoctor on a colleagues Mac.

I need Asciidoctor 0.1.4 for portable, rendering-agnostic links, but the feature is not working for me.
I was following the discussions
- Portable, rendering-agnostic link? (see http://discuss.asciidoctor.org/Portable-rendering-agnostic-link-td422.html)
- Re: Link versus XRef (see http://discuss.asciidoctor.org/Re-Link-versus-XRef-td327.html)
and the issue
- Enhance the link macro to support linking to a relative AsciiDoc document (https://github.com/asciidoctor/asciidoctor/issues/417)

Given:
link:other-document.adoc[text]

When rendered as HTML, I would expect:
<a href="other-document.html">text</a>

However, it is:
<a href="other-document.adoc">text</a>

So the question is:

- do I have to activate the feature or
- did I misunderstand the forum discussion and the issue and I have to use a different approach for linking or
- is this feature still not working

Kind regards, Christian