github-markdown-toc
github-markdown-toc copied to clipboard
TOC becomes ugly if some heading level is missing
# First
### Third
becomes
* [First](#first)
* [Third](#third)
and github renders it in one line (see https://github.com/elimohl/test/blob/master/README.md)
Hey @elimohl
Thanks for report.
But what can i do if the origin text has missed headings?
Maybe add fictional heading or treat inner headings as their level is less. Or at least add a warning about this behavior.