aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-06-22 20:06:29 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2011-06-22 20:06:29 -0700
commit9e71dc3f48d5a397cac4aecc72223629aecbabd6 (patch)
tree9f6aaded321dc718164bb3822c30c3b8ce0802f8 /src
parentd324bcb0a9d9a1a474671a48baecd2c38c773060 (diff)
downloadpandoc-9e71dc3f48d5a397cac4aecc72223629aecbabd6.tar.gz
Support \dots and well as \ldots in LaTeX reader.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index dca745b56..232f1793e 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -777,8 +777,12 @@ doubleQuoteEnd :: CharParser st String
doubleQuoteEnd = try $ string "''"
ellipses :: GenParser Char st Inline
-ellipses = try $ string "\\ldots" >> optional (try $ string "{}") >>
- return Ellipses
+ellipses = try $ do
+ char '\\'
+ optional $ char 'l'
+ string "dots"
+ optional $ try $ string "{}"
+ return Ellipses
enDash :: GenParser Char st Inline
enDash = try (string "--") >> return EnDash