Re: How to cross reference code annotations (aka callouts) in asciidoc?

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/How-to-cross-reference-code-annotations-aka-callouts-in-asciidoc-tp8082p8172.html

You are looking for this issue: https://github.com/asciidoctor/asciidoctor/issues/1077

-Dan

On Mon, Jun 22, 2020 at 3:25 PM siddjain [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Say I have following asciidoc:

[source,ruby]
----
require 'asciidoctor' <1>
puts Asciidoctor.render_file('sample.adoc', :header_footer => true) <2>
----
<1> Imports the library
<2> Reads, parses and renders the file

How can I now cross reference <1> here? Just typing <1> renders it literally.




If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/How-to-cross-reference-code-annotations-aka-callouts-in-asciidoc-tp8082.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux