Incorrect "Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)"
See original GitHub issueIn 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:
- Created 5 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top 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 >
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 Free
Top 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
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:
to this:
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.)
My $0.02: This is a dumb default