2a67b7aea9
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.
96 lines
1.1 KiB
Markdown
96 lines
1.1 KiB
Markdown
```
|
|
% pandoc -t revealjs --slide-level=3
|
|
# One
|
|
|
|
One
|
|
|
|
## Two
|
|
|
|
Two
|
|
|
|
### Three
|
|
|
|
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 id="two" class="title-slide slide level2">
|
|
<h2>Two</h2>
|
|
<p>Two</p>
|
|
</section>
|
|
<section id="three" class="slide level3">
|
|
<h3>Three</h3>
|
|
<p>Three</p>
|
|
<h4 id="four">Four</h4>
|
|
<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>
|
|
```
|
|
|
|
```
|
|
% pandoc -t beamer --slide-level=3
|
|
# One
|
|
|
|
One
|
|
|
|
## Two
|
|
|
|
Two
|
|
|
|
### Three
|
|
|
|
Three
|
|
|
|
#### Four
|
|
|
|
Four
|
|
^D
|
|
\hypertarget{one}{%
|
|
\section{One}\label{one}}
|
|
|
|
\begin{frame}{One}
|
|
One
|
|
\end{frame}
|
|
|
|
\hypertarget{two}{%
|
|
\subsection{Two}\label{two}}
|
|
|
|
\begin{frame}{Two}
|
|
Two
|
|
\end{frame}
|
|
|
|
\begin{frame}{Three}
|
|
\protect\hypertarget{three}{}
|
|
Three
|
|
|
|
\begin{block}{Four}
|
|
\protect\hypertarget{four}{}
|
|
Four
|
|
\end{block}
|
|
\end{frame}
|
|
```
|