Skip to content

Quoteblocks in lists strongly assume child of above list item #3857

@chiptumor

Description

@chiptumor

Marked version: 17.0.1

Describe the bug

Attempting to interject with a quoteblock in a tight list will guarantee it a child of the above list item, regardless of the indentation difference.

To Reproduce

Demo example:

### Child

- list item
  - nested list item
    > quoteblock

- - -

### Sibling

- list item
  - nested list item
  > quoteblock

- - -

### Parent level

- list item
  - nested list item
> quote block

As tested on marked.js.org/demo:

Image

Expected behavior

Similarly to a list item, when sharing an indentation with another LI, it should be the sibling of that LI.

As tested on spec.commonmark.org/dingus:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    L2 - annoyingSimilar to L1 - broken but there is a known workaround available for the issuecategory: lists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions