question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Erroneously marks 4 space indentations as warning for unordered lists

See original GitHub issue

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: 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Sep 26, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found