I want to make incremental div
elements, but pandoc is stripping out the incremental
class name from them:
$ echo '<div class="incremental">hello</div>' | pandoc -f markdown -t slidy
<div class="slide section level6">
<div>
hello
</div>
</div>
This doesn't happen with p
elements:
$ echo '<p class="incremental">hello</p>' | pandoc -f markdown -t slidy
<div class="slide section level6">
<p class="incremental">
hello
</p>
</div>
Nor does it happen with non-incremental
class names:
$ echo '<div class="foo">hello</div>' | pandoc -f markdown -t slidy
<div class="slide section level6">
<div class="foo">
hello
</div>
</div>
This worked when I generated these slides five years ago, but it's not working anymore (pandoc 2.2.1). Was this considered an anti-pattern? Am I doing something wrong?
` gets an `incremental` class, but the enclosing `` does not. Nor do other elements within it, such as `
– earldouglas May 27 '20 at 14:21`. The docs indicate that most elements can be made incremental, but this looks like it's reserved for `
`. Can I use a native div to make everything within it incremental?