diff options
Diffstat (limited to 'src/Text/Pandoc/Class')
-rw-r--r-- | src/Text/Pandoc/Class/IO.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Class/IO.hs b/src/Text/Pandoc/Class/IO.hs index c38a37844..eecda5711 100644 --- a/src/Text/Pandoc/Class/IO.hs +++ b/src/Text/Pandoc/Class/IO.hs @@ -227,5 +227,6 @@ writeMedia dir mediabag subpath = do -- returns the element unchanged otherwise. adjustImagePath :: FilePath -> [FilePath] -> Inline -> Inline adjustImagePath dir paths (Image attr lab (src, tit)) - | unpack src `elem` paths = Image attr lab (pack dir <> "/" <> src, tit) + | unpack src `elem` paths + = Image attr lab (pack (normalise $ dir </> unpack src), tit) adjustImagePath _ _ x = x |