git.iko.soy/typeable/pandoc
on master help sign in
Add returnF to Text.Pandoc.Parsing
commit97addc2a17266b7d1c6cc712244f675bc0263595 authorAlexander Krotov <ilabdsf@gmail.com> dateTue 25 Apr 2017, 19:06 (9 years ago) parent540f3d4
2 files changed+3−3
src/Text/Pandoc/Readers/Org/Blocks.hs+2−2 src/Text/Pandoc/Readers/Org/Inlines.hs+1−1
src/Text/Pandoc/Readers/Org/Blocks.hs+2−2
@@ -701,7 +701,7 @@ endOfParagraph = try $ skipSpaces *> newline *> endOfBlock
701701-- | Example code marked up by a leading colon.
702702example :: Monad m => OrgParser m (F Blocks)
703703example = try $ do
704− return . return . exampleCode =<< unlines <$> many1 exampleLine
704+ returnF . exampleCode =<< unlines <$> many1 exampleLine
705705 where
706706 exampleLine :: Monad m => OrgParser m String
707707 exampleLine = try $ exampleLineStart *> anyLine
@@ -885,7 +885,7 @@ latexFragment :: Monad m => OrgParser m (F Blocks)
885885latexFragment = try $ do
886886 envName <- latexEnvStart
887887 content <- mconcat <$> manyTill anyLineNewline (latexEnd envName)
888− return . return $ B.rawBlock "latex" (content `inLatexEnv` envName)
888+ returnF $ B.rawBlock "latex" (content `inLatexEnv` envName)
889889 where
890890 c `inLatexEnv` e = mconcat [ "\\begin{", e, "}\n"
891891 , c
src/Text/Pandoc/Readers/Org/Inlines.hs+1−1
@@ -157,7 +157,7 @@ endline = try $ do
157157 decEmphasisNewlinesCount
158158 guard =<< newlinesCountWithinLimits
159159 updateLastPreCharPos
160− return . return $ B.softbreak
160+ returnF B.softbreak
161161
162162
163163--