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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

siddjain
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.