diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-05-29 15:09:24 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-05-29 15:09:24 +0200 |
commit | 230a1b89e8fd761a67599aad190a6b9462686abc (patch) | |
tree | dabea57b6a024180c44956ae5750195b52f534d3 /src/Text/Pandoc/Readers | |
parent | d461b29d9d26e04fe6978b08d027fb46db6c3f16 (diff) | |
download | pandoc-230a1b89e8fd761a67599aad190a6b9462686abc.tar.gz |
LaTeX reader: don't crash on empty enumerate environment.
Closes #3707.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 7bcd120ce..4179f4550 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -1321,7 +1321,7 @@ fancyverbEnv name = do codeBlockWith attr <$> verbEnv name orderedList' :: PandocMonad m => LP m Blocks -orderedList' = do +orderedList' = try $ do optional sp (_, style, delim) <- option (1, DefaultStyle, DefaultDelim) $ try $ char '[' *> anyOrderedListMarker <* char ']' |