Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent images from resetting ordered list numbering in asciidoctor

I am using asciidoctor to generate html. I have the following list:

. one
. two 
. three

image::mypic.png[]
. four

And when converted to html, it looks like this:

1. one
2. two 
3. three
<my picture>
1. four

In html, I would like to see:

1. one
2. two 
3. three
<my picture>
4. four

I do not want to reset the counter manually after inserting an image, because i have a hundreds of similar situations.

like image 498
mkfin Avatar asked Jun 03 '16 09:06

mkfin


1 Answers

Inspired by the asciidoctor documentation (section Complex List Content) you can add a + instead of a blank line before your image block.

. one
. two 
. three
+
image::mypict.png[]
. four
like image 106
Jmini Avatar answered Nov 03 '22 00:11

Jmini