pandoc/test/command/7278.md
John MacFarlane 76a4e7127b Beamer writer: support exampleblock and alertblock.
A block will be rendered as an exampleblock if the heading
has class `example` and alertblock if it has class `alert`.

Closes #7278.
2021-05-14 10:09:46 -07:00

577 B

% pandoc -t beamer
# Slide

Some blocks:

## example block title {.example}

text in block

## alert block title {.alert}

text in block

## block title

text in block
^D
\begin{frame}{Slide}
\protect\hypertarget{slide}{}
Some blocks:

\begin{exampleblock}{example block title}
\protect\hypertarget{example-block-title}{}
text in block
\end{exampleblock}

\begin{alertblock}{alert block title}
\protect\hypertarget{alert-block-title}{}
text in block
\end{alertblock}

\begin{block}{block title}
\protect\hypertarget{block-title}{}
text in block
\end{block}
\end{frame}