-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect "Incorrect list-item indent: add 2 spaces (remark-lint:list-item-indent)" #178
Comments
Hi Jeroen, you can configure rules, see the examples for this rule on how to configure your preferred style! |
This is with defaults in atom.io, so I was wondering why it fails with those. |
tab-size is safer across markdown flavours: it makes sure that nested indented code blocks work the same everywhere! If you’re in atom, you should be able to configure it. Or use |
Could it also check the the current settings and warn about more reasonable defaults? |
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.) |
This comment has been minimized.
This comment has been minimized.
The applied fix is based on the reply found here: remarkjs/remark-lint#178 (comment)
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?
The text was updated successfully, but these errors were encountered: