aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-09-07 08:39:09 -0700
committerJohn MacFarlane <[email protected]>2024-09-07 08:39:09 -0700
commit74221a0ccbd42d41b4e2535c84ae8a42050c1020 (patch)
tree38fd32e929f706cb0ac2e71cfd5b1fffcdfd604d /src
parent7d672fccbd5780313aaab6ae9367d07853f1ffd9 (diff)
LaTeX reader: math environments don't have bracketed options.
We were checking for these, and that caused problems if the math began with `[`. Closes #10160.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX/Math.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX/Math.hs b/src/Text/Pandoc/Readers/LaTeX/Math.hs
index 5a943e22c..44de688d5 100644
--- a/src/Text/Pandoc/Readers/LaTeX/Math.hs
+++ b/src/Text/Pandoc/Readers/LaTeX/Math.hs
@@ -70,7 +70,6 @@ mathEnvWith f innerEnv name = f . mathDisplay . inner <$> mathEnv name
mathEnv :: PandocMonad m => Text -> LP m Text
mathEnv name = do
- skipopts
optional blankline
res <- manyTill anyTok (end_ name)
return $ stripTrailingNewlines $ untokenize res