mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
LaTeX reader: Fix regression in package options including underscore.
Closes #4424.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]]
|
||||
```
|
||||
Reference in New Issue
Block a user