From c50af7341e2421ad0626386c9660e45853f713d8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 28 Jan 2013 10:10:23 -0800 Subject: Markdown writer: Set title, author, date variables as before. These are no longer used in the default template, since we use titleblock, but we set them anyway for nondefault template users. --- src/Text/Pandoc/Writers/Markdown.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index 6af32e7e5..4d848d55b 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -141,7 +141,10 @@ pandocToMarkdown opts (Pandoc (Meta title authors date) blocks) = do let context = writerVariables opts ++ [ ("toc", render colwidth toc) , ("body", main) + , ("title", render Nothing title') + , ("date", render Nothing date') ] ++ + [ ("author", render Nothing a) | a <- authors' ] ++ [ ("titleblock", render colwidth titleblock) | not (null title && null authors && null date) ] if writerStandalone opts -- cgit v1.2.3