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

Render Timeline Headers in Table of Contents #1826

Open
ChrisRisner opened this issue Oct 30, 2024 · 0 comments
Open

Render Timeline Headers in Table of Contents #1826

ChrisRisner opened this issue Oct 30, 2024 · 0 comments

Comments

@ChrisRisner
Copy link

Is your feature request related to a problem? Please describe.
Not necessarily a problem.

Describe the solution you'd like
When I use a Timeline shortcode in an article, I'd love to be able to specify if timeline headers should show up (ideally as subitems) in the Table of Contents.

Describe alternatives you've considered
I could not use the timeline feature but definitely like how it displays things.

Additional context
From what I could tell in briefly looking, header elements in the timeline are rendered the same as what the TOC renderer is looking for (i.e. as H2s) but I believe I'd need them to render as H3s (to be subitems) and be rendered before the TOC is done in order for it to work. I haven't had time to examine if delayed loading or another method of building the TOC would make more sense.

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