18

我正在使用 asciidoctor 生成 html。我有以下列表:

. one
. two 
. three

image::mypic.png[]
. four

当转换为 html 时,它看起来像这样:

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

在 html 中,我想看看:

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

我不想在插入图像后手动重置计数器,因为我有数百个类似的情况。

4

1 回答 1

30

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
于 2016-06-04T05:36:17.453 回答