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

Showing a single section at a time #7

Open
ldesousa opened this issue Nov 9, 2022 · 1 comment
Open

Showing a single section at a time #7

ldesousa opened this issue Nov 9, 2022 · 1 comment

Comments

@ldesousa
Copy link
Contributor

ldesousa commented Nov 9, 2022

Not a bug, feature request at best. Do you think it is possible to modify one of the templates into a structure only showing a section at a time? Every time an item would be clicked in the TOC the current section would hide and another one would show. The end result would be something similar to what mdBook or Bookdown create.

I understand div elements can be hidden/shown with javascript. Perhaps creating a div per section could achieve this, but it requires a loop over the pandoc sections content. Is that even possible?

Thank you for reading.

@ryangrose
Copy link
Owner

Yeah that sounds like a great idea. I imagine this would be easiest with a new template

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

2 participants