如何防止图像在 asciidoctor 中重置有序列表编号
How to prevent images from resetting ordered list numbering in asciidoctor
我正在使用 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
我不想在插入图片后手动重置计数器,因为我有数百个类似的情况。
受 asciidoctor 文档(Complex List Content 部分)的启发,您可以在图像块之前添加 +
而不是空行。
. one
. two
. three
+
image::mypict.png[]
. four
我正在使用 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
我不想在插入图片后手动重置计数器,因为我有数百个类似的情况。
受 asciidoctor 文档(Complex List Content 部分)的启发,您可以在图像块之前添加 +
而不是空行。
. one
. two
. three
+
image::mypict.png[]
. four