nok / markdown-toc

Generate and update magically a table of contents based on the headlines of a parsed markdown file.
MIT License
68 stars 37 forks source link

Produced toc doesn't pass linter list-item-indent rule #87

Open MakisH opened 7 years ago

MakisH commented 7 years ago

I have installed both markdown-toc and linter-markdown and I produce a toc automatically with the default settings.

I get an error for every bullet of the list: remark-lint:list-item-indent Incorrect list-item indent: add 2 spaces

Example of a bullet: - [Heading](#heading) It looks like linter-markdown requires 3 spaces, while markdown-toc uses only one.

I tried to find where this rule is actually set and a way to disable it but I gave up. I am not sure what is the standard about markdown lists, but I thought you may want to note this.