Erroneously marks 4 space indentations as warning for unordered lists
See original GitHub issueWhen working with unordered lists, if I’m using 4 space indentations (as per the spec), it marks them as invalid with [markdownlint] MD007/ul-indent: Unordered list indentation [Expected: 2; Actual: 4]
.
Example:
- Base item
- Indented item
Ordered lists, on the other hand, don’t get warnings for either 2 or 4 space indentations.
Since 4 spaces is what’s specified in the official spec, and it’s more that many implementations let you do 2 spaces, I feel this should be corrected to allow 4 spaces without warnings.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
vscode-markdownlint
When working with unordered lists, if I'm using 4 space indentations (as per the spec), it marks them as invalid with [markdownlint] MD007/ul-indent: ......
Read more >How to remove indentation from an unordered list item?
I tried setting margin , padding , text-indent to 0 , but no avail. Seems that setting text-indent to a negative number does...
Read more >CommonMark Spec
These rules specify that a paragraph under a list item must be indented four spaces (presumably, from the left margin, rather than the...
Read more >kramdown Syntax
kramdown assumes that tab stops are set at multiples of four. This is especially important when using tabs for indentation in lists.
Read more >Help:Wikitext
There is a short list of markup and tips at Help:Cheatsheet. In addition to wikitext, some HTML elements are also allowed for presentation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t think it’s quite true that the spec calls for 4 spaces. For that and more discussion of this topic, please see https://github.com/DavidAnson/markdownlint/issues/141 and linked issues.
Sent with GitHawk
Follow-up: I’ve done this in https://github.com/DavidAnson/vscode-markdownlint/commit/33ee19a243cba0cee96f01075a92a524504b465a