diff --git a/mdsvex.config.js b/mdsvex.config.js index ce75d0e..2ee3009 100644 --- a/mdsvex.config.js +++ b/mdsvex.config.js @@ -24,7 +24,7 @@ export default { if (node.type === 'element' && node.tagName === 'img') { // Check if src is a relative path if (node.properties.src && !node.properties.src.startsWith('http')) { - node.properties.src = `${BASE_PATH}${node.properties.src}`.replace(/^\.?\/?/, '/') + node.properties.src = BASE_PATH + node.properties.src.replace(/^\.?\/?/, '/') } } return node