```
% 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
\section{One}\label{one}

\begin{frame}{One}
One
\end{frame}

\subsection{Two}\label{two}

\begin{frame}{Two}
Two
\end{frame}

\begin{frame}{Three}
\protect\phantomsection\label{three}
Three

\begin{block}{Four}
\protect\phantomsection\label{four}
Four
\end{block}
\end{frame}
```
