Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC becomes ugly if some heading level is missing #75

Open
elimohl opened this issue Sep 13, 2019 · 2 comments
Open

TOC becomes ugly if some heading level is missing #75

elimohl opened this issue Sep 13, 2019 · 2 comments

Comments

@elimohl
Copy link

elimohl commented Sep 13, 2019

# First
### Third

becomes

   * [First](#first)
         * [Third](#third)

and github renders it in one line (see https://github.com/elimohl/test/blob/master/README.md)

@ekalinin
Copy link
Owner

Hey @elimohl

Thanks for report.

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

@elimohl
Copy link
Author

elimohl commented Sep 29, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants