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
+1 -1
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
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"]]
```