How do I change the way headers below slide level are converted in LaTeX by pandoc from {block} environment to \structure{} command?
Imagine such a Markdown file (
foo.md)# Slide title ## Header Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Let us convert it to LaTeX with the following command:
pandoc -t beamer --slide-level 1 foo.md -o foo.texThe resulting LaTeX file is something similar to:
\begin{frame}{Slide} \begin{block}{Header} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. \end{block} \end{frame}
Is there an easy simple and elegant solution so that pandoc produce something like the following?
\begin{frame}{Slide}
\structure{Header}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
\end{frame}