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.

Incorrect "Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)"

See original GitHub issue

In Atom.io, the below markdown incorrectly throws “Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)” warnings.

How can I track this down on a plain console/terminal with a small demo file?

# Heading 1

## List at left margin

- one
- two
  - two.one

## List indented two

  - one
  - two
    - two.one

## results

> Warning	remark-lint	Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)	5:3
> Warning	remark-lint	Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)	6:3
> Warning	remark-lint	Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)	7:5
> Warning	remark-lint	Incorrect indentation before bullet: remove 2 spaces (remark-lint:list-item-bullet-indent)	11:3
> Warning	remark-lint	Incorrect indentation before bullet: remove 2 spaces (remark-lint:list-item-bullet-indent)	12:3
> Warning	remark-lint	Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)	13:7

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

61reactions
adelespinassecommented, Mar 26, 2019

Note to anyone seeing this error: Apparently the default configuration requires 3 spaces between the bullet character and the text. So it doesn’t seem to really be about indentation (as I understand it). Changing from this:

* One
* Two
* Three

to this:

*   One
*   Two
*   Three

fixed it for me. I had to determine this experimentally since the documentation doesn’t seem to mention it.

(I don’t run remark-link in my own environment, but it was enabled by default in Codacy (auto-checker for pull requests), and I thought it would be easier and better to conform to default style guidelines rather than try to figure out how to change the configuration.)

0reactions
bkdotcomcommented, Jan 29, 2020

My $0.02: This is a dumb default

Read more comments on GitHub >

github_iconTop Results From Across the Web

Atom markdown warnings - Stack Overflow
Atom "remark-lint" gives me conflicting warnings. Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent) Incorrect indentation ...
Read more >
remark-lint-list-item-indent - npm
remark-lint rule to warn when the spacing between a list item's bullet and its content violates a given style. Latest version: 3.1.1, ...
Read more >
remark-lint-list-item-indent - unified
remark-lint rule to warn when the spacing between a list item's bullet and its content violates a given ... 1:3: Incorrect list-item indent:...
Read more >
Fix codacy warning: Incorrect list-item indent: add 2 spaces
- 4 spaces, no tabs. - No CamelCase. Variables and types must be named_like_this.
Read more >
Linting and Fixing in Vim with Remark | Just some notes…
We can try to address this problem by following a set of rules like the Markdown Style Guide. ... remark-lint-list-item-indent - space ......
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