mdsvex-relative-images
Advanced tools
Comparing version
@@ -17,3 +17,5 @@ // credit to pngwn doing majority of the plugin - https://github.com/pngwn/MDsveX/discussions/246#discussioncomment-720947 | ||
if (url.startsWith(".")) { | ||
let camel = toCamel(url); | ||
// filenames can start with digits, | ||
// prepend underscore to guarantee valid module name | ||
let camel = `_${toCamel(url)}`; | ||
const count = url_count.get(camel); | ||
@@ -20,0 +22,0 @@ const dupe = urls.get(url); |
{ | ||
"name": "mdsvex-relative-images", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Add support for relative image URLs in mdsvex", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4450
2.56%67
3.08%