aboutsummaryrefslogtreecommitdiff
path: root/test/command/7278.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-14 10:09:02 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-14 10:09:46 -0700
commit76a4e7127be1116b67ae531f56aadb05963813b5 (patch)
tree27133926e4da8ff4791978738c48388bb57b84b0 /test/command/7278.md
parentb9b1ec586a1e9e49af5dfef903678fbd029068eb (diff)
downloadpandoc-76a4e7127be1116b67ae531f56aadb05963813b5.tar.gz
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.
Diffstat (limited to 'test/command/7278.md')
-rw-r--r--test/command/7278.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/command/7278.md b/test/command/7278.md
new file mode 100644
index 000000000..dcf71c29f
--- /dev/null
+++ b/test/command/7278.md
@@ -0,0 +1,38 @@
+```
+% 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}
+```