-
Notifications
You must be signed in to change notification settings - Fork 86
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
Set good default for toc-depth
and toc-title
when using pandoc TOC
#123
Comments
Thoughts about defaults:
Do we want to add a default |
I'll take more time to think about this and just add the variables for now. |
Related to #123 and alignement with `html_document()` behavior
toc
, toc_depth
and toc-title
toc-depth
and toc-title
when using pandoc TOC
#127 brings support to the variable. We need to use good default now with maybe bringing |
Currently we have the
toc
variable in the templaterevealjs/inst/rmarkdown/templates/revealjs_presentation/resources/default.html
Lines 518 to 522 in c4d57b9
It can be activated using
We need to add the
toc: true
argument to the function. But it is quite scarce for now as it will just add a slide with TOC content.Pandoc's current template is better and offer to customize the
toc-title
that we are missinghttps://github.com/jgm/pandoc/blob/d133d737ae4a9f37d0eb6361b3b367157d3dc3bf/data/templates/default.revealjs#L63-L72
toc-title
is supported in template since 2.14 only: jgm/pandoc@96d384a (jgm/pandoc#7171)So we need to at least update that to the template.
And with this maybe #69 is not needed.
The text was updated successfully, but these errors were encountered: