git.iko.soy/typeable/pandoc
on master help sign in
Markdown writer: Set title, author, date variables as before.
c50af73John MacFarlane
src/Text/Pandoc/Writers/Markdown.hs+3
@@ -141,7 +141,10 @@ pandocToMarkdown opts (Pandoc (Meta title authors date) blocks) = do
141 let context = writerVariables opts ++
141 let context = writerVariables opts ++
142 [ ("toc", render colwidth toc)
142 [ ("toc", render colwidth toc)
143 , ("body", main)
143 , ("body", main)
144+ , ("title", render Nothing title')
145+ , ("date", render Nothing date')
144 ] ++
146 ] ++
147+ [ ("author", render Nothing a) | a <- authors' ] ++
145 [ ("titleblock", render colwidth titleblock)
148 [ ("titleblock", render colwidth titleblock)
146 | not (null title && null authors && null date) ]
149 | not (null title && null authors && null date) ]
147 if writerStandalone opts
150 if writerStandalone opts