Callouts in html listings

Posted by gamussa on
URL: https://discuss.asciidoctor.org/Callouts-in-html-listings-tp539.html

Hi,

I have a question regarding callouts in html listing. I used following syntax for defining callouts in html source.

[source,html]
----
 <body>
        <p>
             <input type="button" value="Show me" id="myButton"/> <!--<1>-->       
        </p>
</body>
----

It was ok, I guess, before 0.1.4 rc1 version. But asciidoctor is  complains about this:

asciidoctor: WARNING: ch1_advancedjs.asciidoc: line 1737: no callouts refer to list item 1

Construct like

[source,html]
----
<input type="button" value="Show me" id="myButton"/> <!--1-->       
----

fixes situation but causes warnings with asciidoc.
I still want to keep sources of our book compatible with asciidoc because I'm not sure what O'Reilly's book toolchain is using.

Thoughts?

Cheers,
Vik