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

Feature request: Ability to append or prepend TOC items #40

Open
LeaVerou opened this issue Mar 2, 2023 · 0 comments
Open

Feature request: Ability to append or prepend TOC items #40

LeaVerou opened this issue Mar 2, 2023 · 0 comments

Comments

@LeaVerou
Copy link

LeaVerou commented Mar 2, 2023

Thanks for making this plugin!

I tried to use it today to replace some in-house code that generated TOCs client-side. The issue I run into was that we are also adding sections with headings in the same template, which of course are not reflected in the TOC as they are not part of content. It would be nice to be able to add TOC items for these manually.

One possible API for this would be to deprecate the ul option and replace it with a listElement option that takes values like ul or 'ol, but could also take the empty string for no list. Then the consumer of this plugin can add the <ol>/<ul> manually and prepend/append any additional items.

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