mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #49] MD029 - Ordered list item prefix #40
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#40
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 @wrenhal on GitHub (Mar 17, 2017).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/49
I have a document where I have an ordered list and I get the warning above on every item after 1.
So if I have the following code I get the MD029 error on #'s 2, 3 and 4.
1. A computer or access to a computer that we can install software on. Preferably under our own user account. 2. Access to the internet. 3. A place where you can take and save notes. 4. Personal GritIs this normal behavior, or is the linter not recognizing the OL properly?
@wrenhal commented on GitHub (Mar 17, 2017):
Here's the full error message:
MD029/ol-prefix: Ordered list item prefix [Expected: 1; Actual: 2] Actual is 2, 3 or 4 depending on which line I'm on.
@DavidAnson commented on GitHub (Mar 17, 2017):
Could you have a look at issue #45? I think my explanation there is relevant. Please let me know if you disagree.
@wrenhal commented on GitHub (Mar 17, 2017):
OK.. So I should be able to add the following to the settings.json in VSCode:
"markdownlint.config": {
"default": true,
"MD029": { "style": "ordered" }
}
And that should change those error notes.
EDIT:
So, I added those lines and the errors go away. But in my console I do get this error about the settings.json file:
It has a closing brace. The problem part that's underlined in the editor is the part "markdownlint.config":
@DavidAnson commented on GitHub (Mar 17, 2017):
Glad it worked! The console error is VS Code telling you its JSON file is not perfect. Seems like the line above what you pasted needs a comma at the end.