我正在使用 asciidoctor 生成 html。我有以下 list :
. 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
关于asciidoc - 如何防止图像在 asciidoctor 中重置有序列表编号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37611326/