aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2012-08-02 21:03:54 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2012-08-02 21:03:54 -0700
commitb98049ee6c126fb6a6834e0525b37430490131dd (patch)
tree53129f3b1b9c3bb4719ef98dd1604b3765087590 /src/Text/Pandoc/Writers
parent1d7fd8012df7d9e9bb00d3be1f98917491d9c755 (diff)
downloadpandoc-b98049ee6c126fb6a6834e0525b37430490131dd.tar.gz
Made markdown writer sensitive to Ext_pandoc_title_blocks.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r--src/Text/Pandoc/Writers/Markdown.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs
index 3b79cbcd4..fccdd66d5 100644
--- a/src/Text/Pandoc/Writers/Markdown.hs
+++ b/src/Text/Pandoc/Writers/Markdown.hs
@@ -91,7 +91,8 @@ pandocToMarkdown opts (Pandoc (Meta title authors date) blocks) = do
title' <- inlineListToMarkdown opts title
authors' <- mapM (inlineListToMarkdown opts) authors
date' <- inlineListToMarkdown opts date
- let titleblock = not $ null title && null authors && null date
+ let titleblock = isEnabled Ext_pandoc_title_blocks opts &&
+ not (null title && null authors && null date)
let headerBlocks = filter isHeaderBlock blocks
let toc = if writerTableOfContents opts
then tableOfContents opts headerBlocks