Skip to content

Commit

Permalink
Change absolute to relative path in DOM assets
Browse files Browse the repository at this point in the history
This should fix issue with absolute paths

diplodoc-platform/diplodoc#16 (comment)
  • Loading branch information
bongiozzo authored and 3y3 committed Nov 2, 2024
1 parent dbc8e5d commit bff7df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform/plugins/images/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function replaceImageSrc(
const path = resolveRelativePath(currentPath, src);

if (isFileExists(path)) {
state.md.assets?.push(path);
state.md.assets?.push(src);
} else {
log.error(`Asset not found: ${bold(src)} in ${bold(currentPath)}`);
}
Expand Down

0 comments on commit bff7df9

Please sign in to comment.