@@ -453,7 +453,12 @@ inlineToConTeXt (Image attr@(_,cls,_) _ (src, _)) = do
453453 clas = if null cls
454454 then empty
455455 else brackets $ text $ toLabel $ head cls
456− src' = if isURI src
456+ -- Use / for path separators on Windows; see #4918
457+ fixPathSeparators = map $ \c -> case c of
458+ '\\' -> '/'
459+ c -> c
460+ src' = fixPathSeparators $
461+ if isURI src
457462 then src
458463 else unEscapeString src
459464 return $ braces $ "\\externalfigure" <> brackets (text src') <> dims <> clas