mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
parseFromString': reset stateLastStrPos to Nothing before parse.
This commit is contained in:
@@ -462,6 +462,7 @@ parseFromString' :: (Stream s m Char, IsString s, HasLastStrPosition u)
|
||||
-> ParserT s u m a
|
||||
parseFromString' parser str = do
|
||||
oldLastStrPos <- getLastStrPos <$> getState
|
||||
updateState $ setLastStrPos Nothing
|
||||
res <- parseFromString parser str
|
||||
updateState $ setLastStrPos oldLastStrPos
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user