aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-01-22 21:39:26 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-22 21:39:26 -0800
commit5ddd7b121e1aea061b3e7b831dabbd13311929ff (patch)
tree173d57dd67230706d92b60cc150fe9c5896bc3be /src/Text/Pandoc
parent3707bed4c1f211f5cebc22820ad6d70e36c04fcc (diff)
downloadpandoc-5ddd7b121e1aea061b3e7b831dabbd13311929ff.tar.gz
LaTeX reader: support `\endinput`. Closes #5233.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index f5d8527dd..5c0279fce 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1765,6 +1765,7 @@ blockCommands = M.fromList
addMeta "bibliography" . splitBibs . toksToString))
, ("addbibresource", mempty <$ (skipopts *> braced >>=
addMeta "bibliography" . splitBibs . toksToString))
+ , ("endinput", mempty <$ skipMany tok)
-- includes
, ("lstinputlisting", inputListing)
, ("inputminted", inputMinted)