Images as part of ex/implicitly numbered list
Posted by
adam820 on
URL: https://discuss.asciidoctor.org/Images-as-part-of-ex-implicitly-numbered-list-tp1161.html
Hey folks,
Using Asciidoctor (and liking it

), to convert some of our Publican/Docbook powered documents. One thing I haven't been able to figure out if it's possible is how to include an image as part of a numbered list (either implicit or explicit). In Docbook, it was pretty simple, as below, just including the mediaobject and then it picked up on the numbering right after
(i.e. 1, 2, image, 3, 4). This also worked with admonitions, as well.
<orderedlist>
<listitem><para>First ensure that you are both on the <guilabel>Home</guilabel> page, and you are viewing the correct <guilabel>Dashboard</guilabel>. </para></listitem>
<listitem><para>Now locate the button called <guibutton>Add Widgets</guibutton> and select it.</para></listitem>
<listitem><para>A dropdown of available <guilabel>Widgets</guilabel> should appear. Checkmark the Widgets that you would like to have added to your dashboard.</para>
<mediaobject>
<imageobject>
<imagedata fileref="images/General/General-Add_Widget.jpg" format="JPG" width="50%" scalefit="1" align="center" valign="middle" />
</imageobject>
</mediaobject>
</listitem>
<listitem>
<para>Now you must choose which column your newly selected <guilabel>Widgets</guilabel> will appear in. The columns correspond with the layout of the Dashboard, which was selected when the Dashboard was created.</para>
<note>
<para>The default Home Dashboard is a 3-column layout unless it has been edited.</para>
</note>
</listitem>
</orderedlist>
In Asciidoc/tor, this seems to break the numbering scheme. Implicit starts over, Explicit starts over with a complaint on the terminal
(i.e. 1, 2, image, 1 , 2) . Is there any way to do this? I thought, perhaps, putting the whole list in a block might do it, but no dice. This is pretty helpful if you're trying to show pictoral examples as part of a numbered process.
Thanks in advance!