LaTeX reader: Fix regression in package options including underscore.
Closes #4424.
This commit is contained in:
parent
991b57733c
commit
adefd86cd4
2 changed files with 11 additions and 1 deletions
|
@ -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
10
test/command/4424.md
Normal 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"]]
|
||||
```
|
Loading…
Reference in a new issue