aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-13 22:50:17 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-13 22:50:17 -0700
commitb8634b9f75eaa8892a58ffd0cbe0ff8d89c257c8 (patch)
tree4844aee8d766b9bb3f1d9db170d5a5c391e1c89c /src/Text/Pandoc/Writers
parent1668e8ef03cd71f3444053ff04721dac9d26dec5 (diff)
downloadpandoc-b8634b9f75eaa8892a58ffd0cbe0ff8d89c257c8.tar.gz
HTML writer: support speaker notes in dzslides.
With this change `<div class="notes">` and also `<div class="notes" role="note">` will be output if `-t dzslides` is used. So we can have speaker notes in dzslides too. Thanks to maybegeek.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index a1594b2c4..915b193f7 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -458,6 +458,7 @@ blockToHtml opts (Div attr@(_,classes,_) bs) = do
if speakerNotes
then case writerSlideVariant opts of
RevealJsSlides -> addAttrs opts' attr $ H5.aside $ contents'
+ DZSlides -> addAttrs opts' attr $ H5.div $ contents'
NoSlides -> addAttrs opts' attr $ H.div $ contents'
_ -> mempty
else addAttrs opts attr $ H.div $ contents'