Open cderv opened 2 years ago
Using incremental list with revealjs also use the fragment feature on <li>
node. So it will apply the fragment class only on the list items
::: incremental
- Eat spaghetti
- Drink wine
:::
<ul>
<li class="fragment visible current-fragment" data-fragment-index="0">Eat spaghetti</li>
<li class="fragment" data-fragment-index="1">Drink wine</li>
</ul>
It does not seem possible to use markdown syntax within Pandoc to customize the attributes on each bullet though. But that is easier than using attributes on spans
This looks promising, hopefully it can be implemented in v1.0.
If you are interested in newest feature for HTML side with revealjs, you could be interested in Quarto HTML slide format: https://quarto.org/docs/presentations/revealjs/
Quarto is a next-generation publishing tools, inspired by R Markdown experience, made for broader usage (R, Python, Julia, ...). See about R Markdown and Quarto context also: https://quarto.org/docs/faq/rmarkdown.html (and https://yihui.org/en/2022/04/quarto-r-markdown/)
We will not make any big new feature in the revealjs package, but I probably try to add this one in v1 documentation. Note that this should be working with current dev version of revealjs R package
Looking into #73 got me tested several syntax like fenced div or span attributes.
I think this should be documented better to see what works with Pandoc compared to what is document in the JS lib
Resources
Example
Tests of different syntax. @apreshill you could have some thoughts about them.
Equivalent to using fenced div
Content before fade
::: fragment content after the pause :::
::: fragment content after the pause :::
See code
Using HTML directly
Fade in
Fade out
Highlight red
Fade in, then out
Slide up while fading in
See code
attributes can be added on divs
::: fragment Fade in :::
::: {.fragment .fade-out} Fade out :::
::: {.fragment .highlight-red} Highlight red :::
::: {.fragment .current-visible} Fade in, then out :::
::: {.fragment .fade-up} Slide up while fading in :::
See code
See output
it create unnecessary divs
But it works on span too
[Fade in]{.fragment}
[Fade out]{.fragment .fade-out}
[Highlight red]{.fragment .highlight-red}
[Fade in, then out]{.fragment .current-visible}
[Slide up while fading in]{.fragment .fade-right}
See code
See output
You just can't add attributes on any Markdown element
Not yet at least: https://github.com/jgm/pandoc/issues/684