Revealjs: allow 'center' to be set to false.
commit734b0bc2fb19134cdfa6f4efa6f8f8a03800b336
authorJohn MacFarlane <jgm@berkeley.edu>
dateWed 27 May 2015, 11:04 (11 years ago)
parent9b86eec
data/templates+1−1
Submodule changed.
src/Text/Pandoc/Writers/HTML.hs+3
@@ -194,6 +194,9 @@ pandocToHtml opts (Pandoc meta blocks) = do
194194 defField "revealjs-url" ("reveal.js" :: String) $
195195 defField "s5-url" ("s5/default" :: String) $
196196 defField "html5" (writerHtml5 opts) $
197+ defField "center" (case lookupMeta "center" meta of
198+ Just (MetaBool False) -> False
199+ _ -> True) $
197200 metadata
198201 return (thebody, context)
199202