diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-11-10 21:44:05 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-11-10 21:44:05 +0000 |
commit | bd7f5f3f7c2e699d021628d995b931b37423b93a (patch) | |
tree | 6cd4cedd2b9910c8e915b092355c77b15dab9ae1 /src/Text/Pandoc | |
parent | 466b75d997da1027db8612375bc51fa8be61d112 (diff) | |
download | pandoc-bd7f5f3f7c2e699d021628d995b931b37423b93a.tar.gz |
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
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 37cc2bfe4..79f9fc0f7 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -204,7 +204,8 @@ blockQuote = (environment "quote" <|> environment "quotation") >>~ spaces >>= mathBlock = mathBlockWith (begin "equation") (end "equation") <|> mathBlockWith (begin "displaymath") (end "displaymath") <|> - mathBlockWith (string "\\[") (string "\\]") <?> "math block" + mathBlockWith (try $ string "\\[") (try $ string "\\]") <?> + "math block" mathBlockWith start end = try $ do start |