How to prevent images from resetting ordered list numbering in asciidoctor
Asked Answered
C

1

21

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.

Cosmotron answered 3/6, 2016 at 9:58 Comment(0)
B
34

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
Barranca answered 4/6, 2016 at 5:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.