aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-01-07 10:11:46 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-01-07 10:11:46 -0800
commit2a67b7aea9e9d70e67c0def21da78abf4ec590a1 (patch)
treeacbd4c8840583ca22287f5d212cd58daa6309644 /test
parentd4651b3a5b2e31b22bf80adbe44964e09da41f9b (diff)
downloadpandoc-2a67b7aea9e9d70e67c0def21da78abf4ec590a1.tar.gz
Reveal.js writer: restore old behavior for 2D nesting.
The fix to #6030 actually changed behavior, so that the 2D nesting occurred at slide level N-1 and N, instead of at the top-level section. This commit restores the 2.7.3 behavior. If there are more than 2 levels, the top level is horizontal and the rest are collapsed to vertical. Closes #6032.
Diffstat (limited to 'test')
-rw-r--r--test/command/6030.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/command/6030.md b/test/command/6030.md
index 44a934a6a..e05bf6e7f 100644
--- a/test/command/6030.md
+++ b/test/command/6030.md
@@ -15,12 +15,20 @@ Three
#### Four
Four
+
+# New sec
+
+New sec
+
+## New sub
+
+New sub
^D
+<section>
<section id="one" class="title-slide slide level1">
<h1>One</h1>
<p>One</p>
</section>
-<section>
<section id="two" class="title-slide slide level2">
<h2>Two</h2>
<p>Two</p>
@@ -32,6 +40,16 @@ Four
<p>Four</p>
</section>
</section>
+<section>
+<section id="new-sec" class="title-slide slide level1">
+<h1>New sec</h1>
+<p>New sec</p>
+</section>
+<section id="new-sub" class="title-slide slide level2">
+<h2>New sub</h2>
+<p>New sub</p>
+</section>
+</section>
```
```