diff options
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index cb6b183f9..d35bf5182 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -861,7 +861,8 @@ opt = bracketed inline rawopt :: LP String rawopt = do - contents <- bracketed (many1 (noneOf "]") <|> try (string "\\]")) + contents <- bracketed (many1 (noneOf "[]") <|> try (string "\\]") <|> + try (string "\\[") <|> rawopt) optional sp return $ "[" ++ contents ++ "]" |