Bullet list under numbered list requires 3 spaces instead of 2 for indentation

Bug report

Rendering of indentation for bullet list under numbered list requires 3 unit of spaces instead of 2, even when setting for indentation is 2 units of spaces.

The official document for List seems to also uses 3 unit of spaces for the example instead of 2. (Not sure if it’s intentional.)

Indenting numbered list under bullet list, however, only requires 2 units of spaces as expected.

Environment

  • Platform: Windows 11 Pro
  • Platform version: 24H2
  • App Version: 5.11.6, v6-canary.4

How to reproduce


  1. Indent a bullet point under a numbered list with a single tab (2 units of spaces)
  2. Observe render of markdown not rendering the bullet point indented under the numbered list.
  3. Insert one more space before the bullet point.
  4. Observe render of markdown to render the bullet point indented under the numbered list correctly.
1. This is a line of text.
  - This is a bullet point indented with 2 spaces.

1. This is a line of text.
   - This is a bullet point indented with 3 spaces.

- This is a bullet point.
  1. This is a numbered list indented with 2 spaces.

Hi @KiNG_N ,

Thanks for the feedback. You are right. Currently, the indentation commands don’t care of the list types. I’ll check if it’s possible to deal with it in CodeMirror v6.