mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #226] MD029/ol-prefix: Ordered list item prefix [Expected: 1; Actual: 3; Style: 1/1/1]markdownlint(MD029) #193
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#193
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 @xueqing on GitHub (Oct 12, 2019).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/226
I try to insert some code between ordered list items. The preview page is normal, but the raw doc reminds me to reset item prefix to 1. And my editor is VSCode 1.38.1.
Example(test.md):
test order list
@nschonni commented on GitHub (Oct 12, 2019):
The code fence needs to be indented under the second item, otherwise 2 lists are created and use a
startvalue for the numbering on the second. IMO Markdownlint is correctly flagging this@DavidAnson commented on GitHub (Oct 12, 2019):
@nschonni is right. You can see the two OL groups for your top example here: https://markdown-it.github.io/#md3=%7B%22source%22%3A%22%23%20test%20order%20list%5Cn%5Cn1.%20step%201%5Cn2.%20step%202%5Cn%5Cn%60%60%60sh%5Cnecho%20%5C%22hello%5C%22%5Cn%60%60%60%5Cn%5Cn1.%20step%203%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22src%22%7D%7D
@xueqing commented on GitHub (Oct 14, 2019):
Thanks for your explanation! It works for me. And you may close the issue right now or should I close it?
@DavidAnson commented on GitHub (Oct 14, 2019):
I will - thank you!
@harapeko commented on GitHub (Jan 22, 2025):
https://markdown-it.github.io/#md3=%7B%22source%22%3A%22%23%20test%20order%20list%5Cn%5Cn1.%20step%201%5Cn2.%20step%202%5Cn%5Cn%60%60%60sh%5Cnecho%20%5C%22hello%5C%22%5Cn%60%60%60%5Cn%5Cn1.%20step%203%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22src%22%7D%7D