summaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX/Parsing.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX/Parsing.hs b/src/Text/Pandoc/Readers/LaTeX/Parsing.hs
index c2217f809..388c6fa09 100644
--- a/src/Text/Pandoc/Readers/LaTeX/Parsing.hs
+++ b/src/Text/Pandoc/Readers/LaTeX/Parsing.hs
@@ -490,7 +490,11 @@ parseFromToks parser toks = do
case toks of
Tok pos _ _ : _ -> setPosition pos
_ -> return ()
- result <- disablingWithRaw parser
+ -- we ignore existing raw tokens maps (see #9517)
+ oldRawTokens <- sRawTokens <$> getState
+ updateState $ \st -> st{ sRawTokens = mempty }
+ result <- parser
+ updateState $ \st -> st{ sRawTokens = oldRawTokens }
setInput oldInput
setPosition oldpos
return result