git.iko.soy/typeable/pandoc
on master help sign in
Fixed bug in LaTeX reader (pointed out by Mark Eli Kalderon):
bd7f5f3fiddlosopher
src/Text/Pandoc/Readers/LaTeX.hs+2−1
@@ -204,7 +204,8 @@ blockQuote = (environment "quote" <|> environment "quotation") >>~ spaces >>=
204
204
205mathBlock = mathBlockWith (begin "equation") (end "equation") <|>
205mathBlock = mathBlockWith (begin "equation") (end "equation") <|>
206 mathBlockWith (begin "displaymath") (end "displaymath") <|>
206 mathBlockWith (begin "displaymath") (end "displaymath") <|>
207− mathBlockWith (string "\\[") (string "\\]") <?> "math block"
207+ mathBlockWith (try $ string "\\[") (try $ string "\\]") <?>
208+ "math block"
208
209
209mathBlockWith start end = try $ do
210mathBlockWith start end = try $ do
210 start
211 start