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.
This commit is contained in:
John MacFarlane 2013-01-28 10:10:23 -08:00
parent 29a17b1767
commit c50af7341e

View file

@ -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