Continued lists are majorly broken after transformation
Vampire opened this issue · 0 comments
If you transform this:
- foo
- bar
- baz
bam
boo
- bae
you end up with
* foo
** bar
*** baz bam
boo
- bae
which is semantically totally different.
"bam boo" should continue the "bar" point after the nested list containing "baz" and "bae" is a sibling to "bar".
With the current output "bam boo" is joined to "baz", producing "baz bam boo", and "bae" is nested inside "baz bam boo".
(When you try to get it right, don't get fooled by Asciidoctor also parsing lists incorrectly,
with the correct AsciiDoc result Asciidoctor renders "bam boo" as continuation of "foo" and "bae" starts a new list [relevant with ordered lists], but that is an Asciidoctor bug that you can easily work-around though manually)
The correct result that also kramdown-asciidoc produces (besides that it indents the list markers) would be:
* foo
** bar
*** baz
+
bam
boo
** bae