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

Add support for a clickable/selectable table of contents #170

Open
d0c-s4vage opened this issue Oct 22, 2022 · 0 comments
Open

Add support for a clickable/selectable table of contents #170

d0c-s4vage opened this issue Oct 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@d0c-s4vage
Copy link
Owner

d0c-s4vage commented Oct 22, 2022

Describe the Feature Request
Adding [[TOC]] in the markdown should produce a table of contents list from the remaining markdown contents.

Each entry in the table of contents should be clickable/selectable.

Maybe a keyboard shortcut should be added to go back to the first slide?

Example Markdown

# Table of Contents

[[TOC]]

NOTE

We should be able to always generate a table of contents that is toggle-able. I'm thinking an overlay that comes out from the left over the current slide so that it somewhat mirrors the html version:

image

The TOC should be implemented as its own widget so that we can either add it inline in a slide if the [[TOC]] markup is used, or in the left-side overlay that is toggled with the t key (tbd on that, but I think t would work well).

This should also mean being able to add the slide delimiter from the html_options into the slide metadata itself.

@d0c-s4vage d0c-s4vage added the enhancement New feature or request label Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant