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

Respect indentation style #75

Open magicznyleszek opened 7 years ago

magicznyleszek commented 7 years ago

If I use spaces (4 or 2) for indentation in my .md document, I would expect TOC to use same style. Instead I get tabs. I don't personally hate tabs*, but I think everyone agree that consistency is king.

andioz commented 7 years ago

+1, I use .editorconfig file now, and the definition in there should be taken.