-
-
Notifications
You must be signed in to change notification settings - Fork 873
Open
Labels
Description
When an ordered list is formatted as so:
1. one
2. two
3. three
4. four
5. five
6. six
7. seven
8. eight
9. nine
10. ten
11. elevenWhere there are two spaces after items 1-9, and only one after 10 and 11, Markdownlint will mark the lines with items 1-9 with the error:
MD030/list-marker-space: Spaces after list markers [Expected: 1; Actual: 2]markdownlintMD030`
This indentation scheme is common, since it aligns the start of the item text in lists with more than nine items. A generalized lint might allow as many spaces as there are digits in the number of max items minus the number of digits in the current item, plus the value of ol_multi.
I think a new style option for MD030 might be in order to allow this, or at least a way to specify a range for allowed number of spaces for ordered lists.
Reactions are currently unavailable