Skip to content

Commit bff7df9

Browse files
bongiozzo3y3
authored andcommitted
Change absolute to relative path in DOM assets
This should fix issue with absolute paths diplodoc-platform/diplodoc#16 (comment)
1 parent dbc8e5d commit bff7df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transform/plugins/images/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function replaceImageSrc(
2929
const path = resolveRelativePath(currentPath, src);
3030

3131
if (isFileExists(path)) {
32-
state.md.assets?.push(path);
32+
state.md.assets?.push(src);
3333
} else {
3434
log.error(`Asset not found: ${bold(src)} in ${bold(currentPath)}`);
3535
}

0 commit comments

Comments
 (0)