quarto-dev / quarto-dev/quarto-cli

[Feature Request] revealjs: Ability to choose the level of progressive reveal for `incremental` lists

Open
#10,467 3 comments 0 reactions 1 assignee View on GitHub

@cderv is already working on this.

Since Aug 15, 2024.

enhancement revealjs
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

In revealjs Quarto presentations, you can use .incremental to progressively reveal a list:

::: {.incremental}
* Apple
  * liquid
    * juice
    * cider
  * solid
    * pie
* Banana
  * bread
  * pudding
:::

In the presentation, each item in the list, regardless of its depth in the list, will be revealed one at a time. First Apple, then Apple and liquid, then Apple, liquid and cider, etc.

I've often wanted to have the progressive reveal happen only up to a specific level. For example

::: {.incremental incremental-level=1}
* Apple
  * liquid
    * juice
    * cider
  * solid
    * pie
* Banana
  * bread
  * pudding
:::

Would reveal first Apple along with any of its sub-items and second Banana with it's sub-items. Similarly,

::: {.incremental incremental-level=2}
* Apple
  * liquid
    * juice
    * cider
  * solid
    * pie
* Banana
  * bread
  * pudding
:::

would group anything below the 2nd level list items into a single reveal, so in this case Apple would reveal first, followed by liquid and its sub-items, followed by solid and its sub-items., then the same for Banana.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.