【问题标题】:How to prevent images from resetting ordered list numbering in asciidoctor如何防止图像重置 asciidoctor 中的有序列表编号
【发布时间】:2016-06-04 13:36:17
【问题描述】:

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

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

【问题讨论】:

    标签: asciidoc asciidoctor


    【解决方案1】:

    受 asciidoctor 文档(Complex List Content 部分)的启发,您可以在图像块之前添加 + 而不是空行。

    . one
    . two 
    . three
    +
    image::mypict.png[]
    . four
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-12-26
      • 2019-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多