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

allow toc to overflow #128

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# revealjs (development version)

- Support TOC page by adding `toc` and `toc_depths` arguments to `revealjs_presentation`, and allowing modify title with the top-level parameter in the YAML frontmatter, `toc-title` (thanks, @cderv, #127). If TOC has too many items, it becomes scrollable (thanks, @atusy, #128).

- `smart` argument has been removed from `revealjs_presentation()` has no more used by **rmarkdown**. `smart = TRUE` is still the default. If you need to deactivate, use `md_extensions = "-smart"`.

- Add `title-slide` id on the auto generated title slide to ease the styling using CSS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
margin-left: 2em;
}
$endif$
$if(toc)$
.reveal #$idprefix$TOC {
height: 100%;
overflow-y: auto;
}
$endif$
</style>

$if(theme)$
Expand Down