[GH-ISSUE #49] MD029 - Ordered list item prefix #40

Closed
opened 2026-03-03 01:23:15 +03:00 by kerem · 4 comments
Owner

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 Grit

Is this normal behavior, or is the linter not recognizing the OL properly?

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 Grit` Is this normal behavior, or is the linter not recognizing the OL properly?
kerem 2026-03-03 01:23:15 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@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.

<!-- gh-comment-id:287246314 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:287247461 --> @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.
Author
Owner

@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:

file: 'file:///c%3A/Users/T_Lma/AppData/Roaming/Code/User/settings.json'
severity: 'Error'
message: 'Expected comma or closing brace'
at: '9,2'
source: ''

It has a closing brace. The problem part that's underlined in the editor is the part "markdownlint.config":

<!-- gh-comment-id:287345530 --> @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: > file: 'file:///c%3A/Users/T_Lma/AppData/Roaming/Code/User/settings.json' > severity: 'Error' > message: 'Expected comma or closing brace' > at: '9,2' > source: '' It has a closing brace. The problem part that's underlined in the editor is the part "markdownlint.config":
Author
Owner

@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.

<!-- gh-comment-id:287392674 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#40
No description provided.