Comments (9)
Documentation: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md029---ordered-list-item-prefix
MD029 has two modes: one
and ordered
. The default mode is one
which looks for the following style:
1. First
1. Second
1. Third
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 ordered
per your example above, you can update the rule configuration via one of the supported mechanisms:
- https://github.com/DavidAnson/markdownlint#configuration
- https://github.com/DavidAnson/vscode-markdownlint#configure
from markdownlint.
Landed here as this caught me out as well, updating to ordered
it is then, thanks.
from markdownlint.
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.
{
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
"editor.renderWhitespace": "all",
"[markdown]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": false,
"editor.ol-prefix": "ordered"
}
}
from markdownlint.
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
from markdownlint.
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:
{
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
"editor.renderWhitespace": "all",
"markdownlint.config": {
"MD029": false,
"MD034": false
}
}
from markdownlint.
I created .markdownlint.json
in my root folder and added following snippet in that -
{
"default": true,
"ol-prefix": { "style": "ordered" }
}
But the linting still occurs at 2.
showing green squiggly line, saying MD029/ol-prefix: Ordered list item prefix [Expected: 1; Actual: 2]
.
Am I missing something?
from markdownlint.
Can you show the Markdown you are getting the wrong result for?
from markdownlint.
And say what tool or code you are using to lint.
from markdownlint.
In case you're confused about how to use ordered lists with this rule in place...
It’s important to note that the actual numbers you use to mark the list have no effect on the HTML output Markdown produces.
Original Markdown Spec
from markdownlint.
Related Issues (20)
- MD051 false positive `## $\LaTeX$ hooks` ⟼ `[latex hooks](#latex-hooks)` HOT 1
- MD013 false positive when url contains # HOT 8
- Formatter functionality: adjust table size to its content HOT 8
- MD051 support icon HOT 11
- Enhance rule MD033 to be more specific/targetted HOT 7
- MD004 overwritten by prettier HOT 4
- MD009: Add option to remove trailing spaces in code blocks
- No bare-urls when using _redirects file HOT 1
- MD033 - Inline HTML Not ignoring custom HTML tags, but recognizing them as tags HOT 2
- MD033: Organizing information with collapsed sections HOT 7
- MD045: no-alt-text triggered even though html alt-text is specified HOT 2
- QUESTION: Is it possible to write custom linting rules, including Quick Fix information, for frontmatter? HOT 2
- Copyright HOT 1
- MD056/table-column-count counts pipes inside backticks as column separators HOT 2
- MD014 only considers the `$` sign, is this intentional? HOT 2
- Umlauts like Ä, Ö, Ü in Mailadresses/URLs are not detected as normal letters HOT 5
- HTML disable/enables comments triggered when inside Markdown inline code HOT 4
- Frontmatter interpreted as top-level heading HOT 5
- `markdownlint-disable-next-line` should apply to the next non-empty line HOT 1
- MD045 shown when image has alt text in the optional title HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdownlint.