Login  Register

Internal links

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Internal links

Chrstphd
Hi everyone,

I would create a link from a word to a section.

I have this text:
A sentence with <<my-section, a link>>.

...

[[my-section]]
=== My Section

I found that I can write
A sentence with <<_my_section,a link>>.

...

=== My Section

But can we write something like

A sentence with <<My Section,a link>>.
or
A sentence with <<My Section>>.

Thanks!
Christophe.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Internal links

mojavelinux
Administrator
This feature is currently not supported, but I certainly think it is worth exploring. One way to implement this is to try to lookup "My Section" as an id (or perhaps because it has a space we already know it can't be an id), then run the id generator logic on it and look it up again and see if that matches.

Could you file this as an issue?

Cheers,

-Dan


On Tue, May 21, 2013 at 11:03 PM, Chrstphd [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi everyone,

I would create a link from a word to a section.

I have this text:
A sentence with <<my-section, a link>>.

...

[[my-section]]
=== My Section

I found that I can write
A sentence with <<_my_section,a link>>.

...

=== My Section

But can we write something like

A sentence with <<My Section,a link>>.
or
A sentence with <<My Section>>.

Thanks!
Christophe.



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



--