@@ -18,7 +18,7 @@ import Text.Pandoc.Definition
18import Text.Pandoc.XML
18import Text.Pandoc.XML
19import Text.Pandoc.Readers.TeXMath (texMathToInlines)
19import Text.Pandoc.Readers.TeXMath (texMathToInlines)
20import Text.Pandoc.Writers.Shared
20import Text.Pandoc.Writers.Shared
21−import Text.Pandoc.Shared (linesToPara, splitBy, warn)
21+import Text.Pandoc.Shared (linesToPara, splitBy)
22import Text.Pandoc.Options
22import Text.Pandoc.Options
23import Text.Pandoc.Templates (renderTemplate')
23import Text.Pandoc.Templates (renderTemplate')
24import Text.Pandoc.Pretty
24import Text.Pandoc.Pretty
@@ -542,7 +542,7 @@ imageICML opts style attr (src, _) = do
542 case imageSize img of
542 case imageSize img of
543 Right size -> return size
543 Right size -> return size
544 Left msg -> do
544 Left msg -> do
545− warn $ "Could not determine image size in `" ++
545+ lift $ P.warn $ "Could not determine image size in `" ++
546 src ++ "': " ++ msg
546 src ++ "': " ++ msg
547 return def
547 return def
548 let (ow, oh) = sizeInPoints imgS
548 let (ow, oh) = sizeInPoints imgS