-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
cc @tarleb as discussed
❯ pandoc -t revealjs -i
## First slide
::: nonincremental
1. Note 1
2. Note 2
3. Note 3
:::
## Second Slide
1. Note 1
2. Note 2
3. Note 3
^Z
<section id="first-slide" class="slide level2">
<h2>First slide</h2>
<div>
<ol type="1">
<li>Note 1</li>
<li>Note 2</li>
<li>Note 3</li>
</ol>
</div>
</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>
When using incremental
and nonincremental
div as wrapper around list to opt-out Pandoc's feature with incremental list (69a7209 for #4381), the class is removed but the <div>
is not clean when no other class is on it.
pandoc/src/Text/Pandoc/Writers/HTML.hs
Lines 891 to 895 in 626ffd7
-- we remove "incremental" and "nonincremental" if we're in a | |
-- slide presentaiton format. | |
classes' = case slideVariant of | |
NoSlides -> classes | |
_ -> filter (\k -> k /= "incremental" && k /= "nonincremental") classes |
This Div is used only for opt-in / out the feature, and does not really represent a document structure that should end up in Revealjs DOM IMO. Also because the two slides have not the same structure anymore (h2 + div > ol vs h2 + ol)
Maybe it could be clean if no other class ?