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

Hide empty table of contents by default #13

Open
ZachSaucier opened this issue Nov 7, 2023 · 0 comments
Open

Hide empty table of contents by default #13

ZachSaucier opened this issue Nov 7, 2023 · 0 comments

Comments

@ZachSaucier
Copy link

Currently you can customize the installation to hide the table of contents if there are no items by doing this:

customizeTOC: (toc) => {
  if (toc.children[0].children.length > 0) {
    return toc;
  }
  return false;
},

I think this should be default functionality! 🙂

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

1 participant