@@ -18,7 +18,7 @@ import Text.Pandoc.Definition
1818import Text.Pandoc.XML
1919import Text.Pandoc.Readers.TeXMath (texMathToInlines)
2020import Text.Pandoc.Writers.Shared
21−import Text.Pandoc.Shared (linesToPara, splitBy, warn)
21+import Text.Pandoc.Shared (linesToPara, splitBy)
2222import Text.Pandoc.Options
2323import Text.Pandoc.Templates (renderTemplate')
2424import Text.Pandoc.Pretty
@@ -542,7 +542,7 @@ imageICML opts style attr (src, _) = do
542542 case imageSize img of
543543 Right size -> return size
544544 Left msg -> do
545− warn $ "Could not determine image size in `" ++
545+ lift $ P.warn $ "Could not determine image size in `" ++
546546 src ++ "': " ++ msg
547547 return def
548548 let (ow, oh) = sizeInPoints imgS