Skip to content

Conversation

jannewaren
Copy link

@jannewaren jannewaren commented Jul 17, 2025

Hi there! I'm using jekyll-toc in a project of mine and I happen to have a need for a simpler structure of the TOC to avoid some headaches in the end result.

  • Using a <div> element instead of <li> with <ul> or <ol> inside
  • Using a "flat" structure for the TOC, not nesting the lists within lists or divs within divs, but lay them all out on the same level, only using the CSS classes to style it

Now, these are my specific needs and I have a separate branch where I simply did that and I'm currently using it.

But I thought, maybe it would make sense to have these as a configuration option, and maybe someone else could use this also? I understand it might not make it into the scope and you don't want this feature.

But if you could consider this, I would appreciate it! If not, I will keep using my own fork for now 😎 Thanks!

… instead of ul/ol inside li, defaults to false to not change current behaviour
… instead of a nested one reflecting the hierarchy of contents, defaults to false to not change current behaviour
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

Successfully merging this pull request may close these issues.

1 participant