mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #45] MD029 is triggered on any multiline ordered list items. #1884
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#1884
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 @rroman81 on GitHub (Feb 6, 2017).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/45
I am using the markdownlint v0.6.2 and I am seeing that the MD029 rule is always triggered even when using the sample provided inside the rule.
i.e.
should pass the issue but it is generating green swiggle with MD029 tooltip.
@DavidAnson commented on GitHub (Feb 7, 2017):
Documentation: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md029---ordered-list-item-prefix
MD029 has two modes:
oneandordered. The default mode isonewhich looks for the following style:The benefit of this style is that lines can be reordered without having to worry about the numbers going out of sequence. If you wish to change the style to
orderedper your example above, you can update the rule configuration via one of the supported mechanisms:@s10wen commented on GitHub (Sep 26, 2017):
Landed here as this caught me out as well, updating to
orderedit is then, thanks.@s10wen commented on GitHub (Sep 26, 2017):
I'm new to VS, I've gone to settings and added the markdown code, but having trouble with the syntax, tried a few things but no luck, does anyone have an example for the settings code I should be using here please?
e.g.
@DavidAnson commented on GitHub (Sep 26, 2017):
On a phone right now, but if you edit VS Code config files from within the app, it will provide auto-complete suggestions to help. You should end up with something like what you see towards the bottom of this section:
https://github.com/DavidAnson/vscode-markdownlint/blob/master/README.md#configure
@s10wen commented on GitHub (Sep 27, 2017):
Thanks, managed to sort this, in case anyone else comes here, I'd clicked the top one here, instead of the bottom example code:
I now have:
@amoghskulkarni commented on GitHub (Oct 16, 2017):
I created
.markdownlint.jsonin my root folder and added following snippet in that -But the linting still occurs at
2.showing green squiggly line, sayingMD029/ol-prefix: Ordered list item prefix [Expected: 1; Actual: 2].Am I missing something?
@DavidAnson commented on GitHub (Oct 16, 2017):
Can you show the Markdown you are getting the wrong result for?
@DavidAnson commented on GitHub (Oct 16, 2017):
And say what tool or code you are using to lint.
@0xCourtney commented on GitHub (May 18, 2020):
In case you're confused about how to use ordered lists with this rule in place...
Original Markdown Spec