-
This list has many items, which are split across several sections.
-
List items in document include index number. That is, they are formatted like:
1. This list has many items, which are split across several sections.
not like:
. This list has many items, which are split across several sections.
-
There are use cases in which starting from higher number is advocated.
-
For example, when many lists (from AsciiDoctor’s point of view) make sense as a whole (from reader’s point of view).
-
I mean, software installation procedure could be organized in sections like: "Hardware requirements", "Software prerequisites", "Where to download from", "Compiling C++ sources", etc.
-
This bug report is also kinda valid use case.
-
Actually, this list is rendered correctly.
-
AsciiDoc supports
[start=n]
annotation which allows to continue list from some higher number. -
And yes, this technique is used in this very document.
-
Warnings!
-
It says:
asciidoctor: WARNING: Wrong.adoc: line 21: list item index: expected 1, got 3 asciidoctor: WARNING: Wrong.adoc: line 22: list item index: expected 2, got 4 asciidoctor: WARNING: Wrong.adoc: line 23: list item index: expected 3, got 5 asciidoctor: WARNING: Wrong.adoc: line 24: list item index: expected 4, got 6 asciidoctor: WARNING: Wrong.adoc: line 29: list item index: expected 1, got 7 asciidoctor: WARNING: Wrong.adoc: line 30: list item index: expected 2, got 8 asciidoctor: WARNING: Wrong.adoc: line 31: list item index: expected 3, got 9 asciidoctor: WARNING: Wrong.adoc: line 36: list item index: expected 1, got 10 asciidoctor: WARNING: Wrong.adoc: line 37: list item index: expected 2, got 11 asciidoctor: WARNING: Wrong.adoc: line 52: list item index: expected 3, got 12 asciidoctor: WARNING: Wrong.adoc: line 57: list item index: expected 1, got 13
-
Which is definitely incorrect.