aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-14 17:45:48 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-14 17:46:03 -0700
commit49d0f58f248493768f0941f452daf66dfeacc1c5 (patch)
treeaa757fe2a6bcd217b8018583a2c0e3bf269fd585
parent88faa45f1d294690ad97b7f45a75c89c65227cf1 (diff)
downloadpandoc-49d0f58f248493768f0941f452daf66dfeacc1c5.tar.gz
LaTeX reader: skip `\PackageError` commands.
See #4408. But this doesn't fix the issue.
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 4ced829cc..1bdcabfbf 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1762,6 +1762,8 @@ blockCommands = M.fromList
, ("input", include "input")
, ("subfile", include "subfile")
, ("usepackage", include "usepackage")
+ -- preamble
+ , ("PackageError", mempty <$ (braced >> braced >> braced))
]