Skip to content

Continued lists are majorly broken after transformation #65

@Vampire

Description

@Vampire

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions