vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
812 stars 129 forks source link

Nested list under Ordered list with "Indent size" set to 2 incorrectly shows warnings #902

Open ni-fgenois opened 3 years ago

ni-fgenois commented 3 years ago

When the "Indent size" is set to 2, I would expect the following snippet not to show a warning :

1. Item
  - Sub-item A
  - Sub-item B

The recommended fix is (4 indents) :

1. Item
    - Sub-item A
    - Sub-item B

But this also works (3 indents) :

1. Item
   - Sub-item A
   - Sub-item B

Note that this only happens when the root item is an ordered list, the following doesn't show a warning, as is expected :

- Item
  - Sub-item A
  - Sub-item B
vjpr commented 3 years ago

Maybe related: https://github.com/vsch/idea-multimarkdown/issues/906#issuecomment-762283747