数字计数在 plantuml 扩展中不起作用 (asciidoctor-diagram)

counting of figures does not work in plantuml extension (asciidoctor-diagram)

我使用 maven

            <artifactId>asciidoctor-maven-plugin</artifactId>
            <version>2.0.0-RC.1</version>
            <dependencies>
                <dependency>
                    <groupId>org.asciidoctor</groupId>
                    <artifactId>asciidoctorj-pdf</artifactId>
                    <version>1.5.0-beta.4</version>
                </dependency>
                <dependency>
                    <groupId>org.asciidoctor</groupId>
                    <artifactId>asciidoctorj-diagram</artifactId>
                    <version>1.5.18</version>

                   <require>asciidoctor-diagram</require>
                </requires>

以下情况:

:desc-image1: description image 1
[id="image1",reftext="{figure-caption} {counter:figures}"]
.{desc-image1}
image::image1.png[align="center"]

:desc-plantuml: description plantuml
[id="plantuml",reftext="{figure-caption} {counter:figures}"]
.{figure-caption} {figures}: {desc-plantuml}
plantuml::images/plantuml.puml[align="center"]

:desc-image2: description image 2
[id="image2",reftext="{figure-caption} {counter:figures}"]
.{desc-image2}
image::image2.png[align="center"]

请注意,我在 plantuml 部分添加了 {figure-caption} {数字}:

所以我有两个问题(图像是正确的!): 文本中 image2 的错误编号(html 和 pdf)

Figure 2: description image 2 expected Figure 3: description image 2

标题和数字不是在 plantuml 自动生成的。为什么?

Figure 1: description image 1
description plantuml             expected    Figure 2: description plantuml
Figure 2: description image 2   expected    Figure 3: description image 2

问题位于parser.rb的第609行是2.0.0.RC1的原因吗?

<asciidoctor.maven.plugin.version>2.0.0-RC.1</asciidoctor.maven.plugin.version>
<asciidoctorj.pdf.version>1.5.0-beta.**7**</asciidoctorj.pdf.version>
**<asciidoctorj.version>2.1.0</asciidoctorj.version>**
<asciidoctor.diagram.version>1.5.18</asciidoctor.diagram.version>

使用这个版本解决了问题