Skip to content

Commit cd7873b

Browse files
authored
Merge pull request #34 from asierrayk/patch-1
Fix imagePath formatting in getImageLink function
2 parents 7a90d97 + b37fe40 commit cd7873b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/render.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ function render(basePath, filePath) {
2626
function getImageLink(imagePath) {
2727
let renderPattern = config.renderPattern;
2828
return calcPathVariables(renderPattern, {
29-
imagePath: imagePath,
30-
}).replace(/\\/g, "/");
29+
imagePath: imagePath.replace(/\\/g, "/"),
30+
});
3131
}
3232
}
3333

0 commit comments

Comments
 (0)