ekalinin/github-markdown-toc

TOC becomes ugly if some heading level is missing

elimohl opened this issue · 2 comments

# 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.