git.iko.soy/typeable/pandoc
on master help sign in
Muse reader: use updateState instead of setState to restore museInLink
commita16382b06b860e2d4a7284527b6fda0167cffa61 authorAlexander Krotov <ilabdsf@gmail.com> dateTue 20 Feb 2018, 14:37 (9 years ago) parentf6eac1a
1 file changed+1−1
src/Text/Pandoc/Readers/Muse.hs+1−1
src/Text/Pandoc/Readers/Muse.hs+1−1
@@ -912,7 +912,7 @@ link = try $ do
912912 guard $ not $ museInLink st
913913 setState $ st{ museInLink = True }
914914 (url, title, content) <- linkText
915− setState $ st{ museInLink = False }
915+ updateState (\st -> st { museInLink = False })
916916 return $ case stripPrefix "URL:" url of
917917 Nothing -> if isImageUrl url
918918 then B.image url title <$> fromMaybe (return mempty) content