LaTeX reader: Fix regression in package options including underscore.

Closes #4424.
This commit is contained in:
John MacFarlane 2018-03-02 09:33:18 -08:00
parent 991b57733c
commit adefd86cd4
2 changed files with 11 additions and 1 deletions

View file

@ -1162,7 +1162,7 @@ singleChar = try $ do
else return $ Tok pos toktype t
opt :: PandocMonad m => LP m Inlines
opt = bracketed inline
opt = bracketed inline <|> (str . T.unpack <$> rawopt)
rawopt :: PandocMonad m => LP m Text
rawopt = do

10
test/command/4424.md Normal file
View file

@ -0,0 +1,10 @@
```
% pandoc -f latex -t native
\documentclass{article}
\usepackage[sortlocale=en_GB]{biblatex}
\begin{document}
Test
\end{document}
^D
[Para [Str "Test"]]
```