aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-09-19 10:10:45 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-09-19 10:10:45 -0700
commit132a6df51e52463178711a648e848f6f73299dc8 (patch)
tree01c6849450731ecc0bf0a418a10a67498255c137 /src/Text/Pandoc/Readers
parentdd7b83ac9111b63786c1042c4849d7cea79c668b (diff)
downloadpandoc-132a6df51e52463178711a648e848f6f73299dc8.tar.gz
Ignore (and gobble parameters of) CSLReferences environment.
Otherwise we get the parameters as numbers in the output. Closes #7531.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-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 5d3ff5f95..34eb53245 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -967,6 +967,7 @@ environments = M.union (tableEnvironments blocks inline) $
, ("toggletrue", braced >>= setToggle True)
, ("togglefalse", braced >>= setToggle False)
, ("iftoggle", try $ ifToggle >> block)
+ , ("CSLReferences", braced >> braced >> env "CSLReferences" blocks)
]
filecontents :: PandocMonad m => LP m Blocks