Login  Register

Link references with text

Posted by aalmiray on Apr 04, 2019; 8:31pm
URL: https://discuss.asciidoctor.org/Link-references-with-text-tp6833.html

Hi,

I'm aware that you can write references to sections in the following manner

[[_section_2_]]
= Section 2
Blah blah blah bla

= Section 3
As explained in <<_section2_,section 2>> blah blah ...

However one has to update the text if the section text changes. Also, if one desires to use the section number and the section is moved the text has to be updated as well.

Is there a way to link to a section and have the text be the exact number/text from the rendered section? Something like <<_section_2,>> perhaps?

Cheers,
Andres