diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-02-05 08:46:04 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-02-05 08:46:04 -0800 |
commit | c54c3d50b0c3d08e5f8f03f8cc9e00aac2617cea (patch) | |
tree | 26fb63b52d4881b98ae9d0402d79b7c834f006b0 | |
parent | 79f15944709d060784fdd6bd278657a48157f25a (diff) | |
download | pandoc-c54c3d50b0c3d08e5f8f03f8cc9e00aac2617cea.tar.gz |
LaTeX reader: Skip everything after \end{document}.
-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 c2b0cdd27..f06068497 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -653,7 +653,7 @@ rawLaTeXInline = do environments :: M.Map String (LP Blocks) environments = M.fromList - [ ("document", env "document" blocks) + [ ("document", env "document" blocks <* skipMany anyChar) , ("letter", env "letter" letter_contents) , ("center", env "center" blocks) , ("tabular", env "tabular" simpTable) |