Skip to content

Nested list item with 4 indents is concealed unexpectedly #127

Open
@letstakeawalk

Description

@letstakeawalk

Describe the bug
First of all, thanks for working on this amazing parser!

After the recent update, the list_marker of the first nested list item with 4 spaces is concealed to nothing (``) while the following nested list items are concealed as expected.
Please refer to below example.

Code example

- a list item with 4 spaces
    - first nested list item  <-- the `list_marker_minus` is concealed to blank
    - second nested list item <-- conceal works fine
    - third & more list items <-- conceal works fine

- a list item with 2 spaces
  - first nested list item <-- works fine
  - more items             <-- works fine

Expected behavior
List item marker (-,+,*) should be concealed regardless of the tab size (2 or 4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions