Fixed bug in LaTeX reader (pointed out by Mark Eli Kalderon):
needed a "try" before "string" in parser for \[ math blocks.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1068 788f1e2b-df1e-0410-8736-df70ead52e1b
commitbd7f5f3f7c2e699d021628d995b931b37423b93a
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateSat 10 Nov 2007, 21:44 (19 years ago)
parent466b75d
src/Text/Pandoc/Readers/LaTeX.hs+2−1
@@ -204,7 +204,8 @@ blockQuote = (environment "quote" <|> environment "quotation") >>~ spaces >>=
204204
205205mathBlock = mathBlockWith (begin "equation") (end "equation") <|>
206206 mathBlockWith (begin "displaymath") (end "displaymath") <|>
207− mathBlockWith (string "\\[") (string "\\]") <?> "math block"
207+ mathBlockWith (try $ string "\\[") (try $ string "\\]") <?>
208+ "math block"
208209
209210mathBlockWith start end = try $ do
210211 start