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:
parent
29a17b1767
commit
c50af7341e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue