grantmcdermott / quarto-revealjs-clean

A minimalist and elegant presentation theme for Quarto Reveal.js
https://grantmcdermott.com/quarto-revealjs-clean-demo/template.html
MIT License
230 stars 37 forks source link

Pauses don't work with subtitles #3

Closed grantmcdermott closed 6 months ago

grantmcdermott commented 1 year ago

MWE:

---
title: A title
subtitle: A subtitle
format: clean-revealjs
---

## No subtitle

This pause works.

. . .

Nice.

## With subtitle

### Subtitle

This pause doesn't work.

. . .

Not nice.
grantmcdermott commented 1 year ago

Incremental bullet points do work, however, regardless of subtitle.

## With subtitle

### Subtitle

Incremental bullet points still work.

::: {.incremental}
- First point.
- Second point.
:::
zakvarty commented 6 months ago

This is a quarto / revealJS issue, not a template issue. Fragments can be used to achieve your desired behaviour. Great theme by the way!

---
title: A title
subtitle: A subtitle
format: clean-revealjs
---

## No subtitle

This pause works.

. . .

Nice.

## With subtitle

### Subtitle

This pause should be replaced by a fragment

<!-- . . . -->

:::{.fragment}
Much better.
:::

<br>                                <!-- just for aesthetics -->

:::{.fragment}
### Second Subtitle

Fragments can also be used to make subtitles appear sequentially.
:::
grantmcdermott commented 6 months ago

Ah, thanks for spotting this (and the fragment tip) @zakvarty.

Do you know if an upstream issue has been filed?

I'll close in the interim.

P.S. Sorry for the slow reply; I missed your comment while I was out on vacation.