diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-07-10 15:05:24 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-07-10 15:05:24 -0700 |
commit | 05a5b4e3c2aa53fa9c12464791d3a4969b18daba (patch) | |
tree | 102e97dfcb675cf762ee1c323f51331fa9c362fa /src/Text/Pandoc/Writers | |
parent | 9e0495cb8347e77c30b8ff0ade54c1ff990bacd8 (diff) | |
download | pandoc-05a5b4e3c2aa53fa9c12464791d3a4969b18daba.tar.gz |
HTML writer: Deactivate "incremental" inside slide speaker notes.
Closes #1394.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 9a26cf2ac..744e88c16 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -429,9 +429,11 @@ blockToHtml opts (Div attr@(_,classes,_) bs) = do let contents' = nl opts >> contents >> nl opts return $ if "notes" `elem` classes - then case writerSlideVariant opts of - RevealJsSlides -> addAttrs opts attr $ H5.aside $ contents' - NoSlides -> addAttrs opts attr $ H.div $ contents' + then let opts' = opts{ writerIncremental = False } in + -- we don't want incremental output inside speaker notes + case writerSlideVariant opts of + RevealJsSlides -> addAttrs opts' attr $ H5.aside $ contents' + NoSlides -> addAttrs opts' attr $ H.div $ contents' _ -> mempty else addAttrs opts attr $ H.div $ contents' blockToHtml _ (RawBlock f str) |