diff options
author | Joseph C. Sible <josephcsible@users.noreply.github.com> | 2020-03-30 00:11:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-29 21:11:05 -0700 |
commit | 377efd0ce7736685c2a43842743a11ae01ed0a0b (patch) | |
tree | fdb71f111bce17b9e8a5556c0f89739ac35eec16 /src/Text/Pandoc/Writers/Markdown.hs | |
parent | 40fd20d43fc2431e411554c138cb6e7d15654917 (diff) | |
download | pandoc-377efd0ce7736685c2a43842743a11ae01ed0a0b.tar.gz |
Clean up some fmaps (#6226)
* Avoid fmapping when we're just binding right after anyway
* Clean up unnecessary fmaps in the LaTeX reader
Diffstat (limited to 'src/Text/Pandoc/Writers/Markdown.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/Markdown.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index 304147bee..5c264aa30 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -360,9 +360,9 @@ beginsWithOrderedListMarker str = notesAndRefs :: PandocMonad m => WriterOptions -> MD m (Doc Text) notesAndRefs opts = do - notes' <- reverse <$> gets stNotes >>= notesToMarkdown opts + notes' <- gets stNotes >>= notesToMarkdown opts . reverse modify $ \s -> s { stNotes = [] } - refs' <- reverse <$> gets stRefs >>= refsToMarkdown opts + refs' <- gets stRefs >>= refsToMarkdown opts . reverse modify $ \s -> s { stPrevRefs = stPrevRefs s ++ stRefs s , stRefs = []} |