Markdown writer: Print references if output is 'plain'.
This commit is contained in:
parent
ca6842349e
commit
3747104178
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue