LaTeX reader: Allow space before bracketed options.

This commit is contained in:
John MacFarlane 2018-11-18 23:50:21 -08:00
parent 8a157ff839
commit e86cbcd7e1

View file

@ -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 <> "]"