Files
pandoc/test/command/10328.md
Albert Krewinkel 4c66bf2790 HTML writer: unwrap empty incremental divs
Divs are unwrapped if the only purpose of the div seems to be to control
whether lists are presented incrementally on slides.

Closes: #10328
2024-10-23 09:04:54 -07:00

616 B

Unwrap divs if they only have the nonincremental or incremental classes.

% pandoc --incremental --from=markdown --to=revealjs
## First slide

::: nonincremental

1.  Note 1
2.  Note 2
3.  Note 3

:::

## Second Slide

1.  Note 1
2.  Note 2
3.  Note 3
^D
<section id="first-slide" class="slide level2">
<h2>First slide</h2>
<ol type="1">
<li>Note 1</li>
<li>Note 2</li>
<li>Note 3</li>
</ol>
</section>
<section id="second-slide" class="slide level2">
<h2>Second Slide</h2>
<ol type="1">
<li class="fragment">Note 1</li>
<li class="fragment">Note 2</li>
<li class="fragment">Note 3</li>
</ol>
</section>