Skip to content

Surprising behaviour when nesting ordered lists with two spaces #353

@robbertbrak

Description

@robbertbrak

When I try create a nested ordered list with two space indent:

1. A
  1. B

it does not produce a nested list. Instead, both A and B are rendered at the same level.

<ol>
  <li>A</li>
  <li>B</li>
</ol>

It seems that the minimum indentation level is three spaces. While this makes sense in retrospect (after all, the first item starts after three characters), it took me a while to figure it out, as the documentation on this point is rather hard to understand. It doesn't help that Github itself seems to have no problems with two space indents, or even one space:

  1. A
    1. B

Perhaps the documentation could be clarified with a few examples? E.g. something like http://spec.commonmark.org/0.25/#example-270.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions