diff --git a/src/transform/plugins/images/index.ts b/src/transform/plugins/images/index.ts index 7684b2d9..be29205f 100644 --- a/src/transform/plugins/images/index.ts +++ b/src/transform/plugins/images/index.ts @@ -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)}`); }