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

Ignore header tags with no ids #331

Closed
sivaram10111998 opened this issue Feb 21, 2024 · 1 comment
Closed

Ignore header tags with no ids #331

sivaram10111998 opened this issue Feb 21, 2024 · 1 comment

Comments

@sivaram10111998
Copy link

sivaram10111998 commented Feb 21, 2024

Currently when a new line is added which is of type header and without any text, it shows up in the toc with an empty bullet point. So can we get a way to ignore the header tags that don't have any id.
Eg: < h1>&nbsp< /h1>
Even though above tag don't have any content and id, it's being shown in toc.

@tscanlin
Copy link
Owner

Why are you including a heading with no content in it in the first place? Maybe there's some use case I'm missing but that wouldn't seem to be very semantic to me. Maybe it could be removed instead?

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

No branches or pull requests

2 participants