mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 19:26:45 +00:00
Support \dots and well as \ldots in LaTeX reader.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user