asciidoc - 如何防止图像在 asciidoctor 中重置有序列表编号

标签 asciidoc asciidoctor

我正在使用 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/

相关文章:

asciidoc - 使用 asciidoctor 创建自定义 HTML

maven - AsciiDoctor 表格单元格中的多个段落

asciidoc - 如何对 asciidoc 中的代码列表进行编号?

asciidoctor - AsciiDoc 中的当前文件名

haskell - 是否可以将 asciidoc 与 hakyll 一起使用?

asciidoc - 链接到 Asciidoc 中的相关文件

ms-word - 将 AsciiDoc 映射到 docx 模板

Python:将 HTML 转换为 AsciiDoc

java - Maven 站点中图像的附加资源目录