github-markdown-toc icon indicating copy to clipboard operation
github-markdown-toc copied to clipboard

TOC becomes ugly if some heading level is missing

Open elimohl opened this issue 6 years ago • 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)

elimohl avatar Sep 13 '19 13:09 elimohl

Hey @elimohl

Thanks for report.

But what can i do if the origin text has missed headings?

ekalinin avatar Sep 13 '19 14:09 ekalinin

Maybe add fictional heading or treat inner headings as their level is less. Or at least add a warning about this behavior.

elimohl avatar Sep 29 '19 17:09 elimohl