git.iko.soy/typeable/pandoc
on master help sign in
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.

commitc50af7341e2421ad0626386c9660e45853f713d8 authorJohn MacFarlane <fiddlosopher@gmail.com> dateMon 28 Jan 2013, 10:10 (14 years ago) parent29a17b1
1 file changed+3
src/Text/Pandoc/Writers/Markdown.hs+3
src/Text/Pandoc/Writers/Markdown.hs+3
@@ -141,7 +141,10 @@ pandocToMarkdown opts (Pandoc (Meta title authors date) blocks) = do
141141 let context = writerVariables opts ++
142142 [ ("toc", render colwidth toc)
143143 , ("body", main)
144+ , ("title", render Nothing title')
145+ , ("date", render Nothing date')
144146 ] ++
147+ [ ("author", render Nothing a) | a <- authors' ] ++
145148 [ ("titleblock", render colwidth titleblock)
146149 | not (null title && null authors && null date) ]
147150 if writerStandalone opts