From e86cbcd7e1e7faa47433961ff5f99f5bf32f902d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 18 Nov 2018 23:50:21 -0800 Subject: LaTeX reader: Allow space before bracketed options. --- src/Text/Pandoc/Readers/LaTeX.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc') 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 <> "]" -- cgit v1.2.3