Markdown writer: Print references if output is 'plain'.

This commit is contained in:
John MacFarlane 2013-09-12 11:23:34 -07:00
parent ca6842349e
commit 3747104178

View file

@ -189,7 +189,8 @@ pandocToMarkdown opts (Pandoc meta blocks) = do
-- Strip off final 'references' header if markdown citations enabled
let blocks' = case reverse blocks of
(Div (_,["references"],_) _):xs
| isEnabled Ext_citations opts -> reverse xs
| not isPlain && isEnabled Ext_citations opts
-> reverse xs
_ -> blocks
body <- blockListToMarkdown opts blocks'
st <- get