aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index f91e62d31..d291e5529 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -774,7 +774,8 @@ paropt :: PandocMonad m => LP m Inlines
paropt = parenWrapped inline
rawopt :: PandocMonad m => LP m Text
-rawopt = do
+rawopt = try $ do
+ optional sp
inner <- untokenize <$> bracketedToks
optional sp
return $ "[" <> inner <> "]"