How to cross reference code annotations (aka callouts) in asciidoc?
Posted by
siddjain on
URL: https://discuss.asciidoctor.org/How-to-cross-reference-code-annotations-aka-callouts-in-asciidoc-tp8082.html
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.