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
Empty list items in table of contents when heading structure skips a level #7128
Comments
Related support thread I opened on the forum: https://discourse.gohugo.io/t/requesting-help/9132. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
Please re-open. To reproduce:
Contrary to the original report, the following does not resolve the problem:
Related: https://discourse.gohugo.io/t/24460 |
Please re-open. |
What version of Hugo are you using (
hugo version
)?v0.68.3 on macOS via HomeBrew
Does this issue reproduce with the latest release?
Yes.
Whenever I enable the Table Of Contents in a situation without any
endLevel
specified in the site configuration:The Table of Contents comes out looking like this:
I believe the expected behaviour would be for no extra bullet point to appear (or to appear with the H4).
If I add an H3:
then:
Work-Around
If I manually set an
endLevel
, the problem disappears. It is only when one is not set that the problems occur.The text was updated successfully, but these errors were encountered: