mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #38] MD029 (ol-prefix) and nested unordered lists in ordered lists #1877
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#1877
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EvgenyOrekhov on GitHub (Dec 5, 2016).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/38
If I use the following rule:
then markdownlint says "Ordered list item prefix (Expected: 1; Actual: 2)" to the following code:
It looks like markdownlint thinks that
2. cis the beginning of a new list, but it's the second item of the single ordered list.If I indent the unordered lists, markdownlint says "Consider starting bulleted lists at the beginning of the line".
What is the correct way of using nested unordered lists in ordered lists?
@DavidAnson commented on GitHub (Dec 5, 2016):
When indenting, did you use three spaces? The following should do what you want:
Markers for nested lists should begin under the text of the previous item - for numbered lists that's typically 3 vs. 2 spaces.
You can play around interactively here to see that
markdown-itdoesn't recognize the nested lists with just 2 spaces: https://dlaa.me/markdownlint/@EvgenyOrekhov commented on GitHub (Dec 6, 2016):
@DavidAnson thanks!