diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-10-27 20:28:29 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-10-27 20:28:29 -0700 |
commit | ff16db1aa306113132cc6cfaa70791a0db75e0a5 (patch) | |
tree | b5a016232c62645a1276c30eb4b69356662c060e /src/Text/Pandoc/Writers/Markdown.hs | |
parent | bf54a6335a0d2ae3fdf03e60a84448476f651d59 (diff) |
Automatic reformating by stylish-haskell.
Diffstat (limited to 'src/Text/Pandoc/Writers/Markdown.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/Markdown.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index a54f4eb85..5d812b169 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -39,8 +39,8 @@ import Control.Monad.State.Strict import Data.Char (chr, isPunctuation, isSpace, ord) import Data.Default import qualified Data.HashMap.Strict as H -import qualified Data.Map as M import Data.List (find, group, intersperse, sortBy, stripPrefix, transpose) +import qualified Data.Map as M import Data.Maybe (fromMaybe) import Data.Monoid (Any (..)) import Data.Ord (comparing) @@ -994,7 +994,7 @@ inlineToMarkdown opts (Superscript lst) = else let rendered = render Nothing contents in case mapM toSuperscript rendered of - Just r -> text r + Just r -> text r Nothing -> text $ "^(" ++ rendered ++ ")" inlineToMarkdown _ (Subscript []) = return empty inlineToMarkdown opts (Subscript lst) = @@ -1007,7 +1007,7 @@ inlineToMarkdown opts (Subscript lst) = else let rendered = render Nothing contents in case mapM toSubscript rendered of - Just r -> text r + Just r -> text r Nothing -> text $ "_(" ++ rendered ++ ")" inlineToMarkdown opts (SmallCaps lst) = do plain <- asks envPlain |