diff --git "a/test/20240705.\303\256le-de-myst-en-lego/les sous titres automatis\303\251s de youtube.jpg" "b/test/20240705.\303\256le-de-myst-en-lego/les sous titres automatis\303\251s de youtube.jpg" new file mode 100644 index 0000000..95de200 Binary files /dev/null and "b/test/20240705.\303\256le-de-myst-en-lego/les sous titres automatis\303\251s de youtube.jpg" differ diff --git a/test/transform-test.mjs b/test/transform-test.mjs index 4e112ab..84999b8 100644 --- a/test/transform-test.mjs +++ b/test/transform-test.mjs @@ -151,6 +151,40 @@ test("Transform image file with diacritics #253", async t => { } }); + let results = await elev.toJSON(); + t.is(normalizeEscapedPaths(results[0].content), `My ugly mug`); +}); + +test("Transform image file in folder with diacritics #253", async t => { + let elev = new Eleventy( "test", "test/_site", { + config: eleventyConfig => { + // Broken: 20240705.île-de-myst-en-lego + // Working: 20240705.île-de-myst-en-lego + eleventyConfig.addTemplate("virtual.html", `My ugly mug`); + eleventyConfig.addPlugin(eleventyImageTransformPlugin, { + formats: ["auto"], + dryRun: true, // don’t write image files! + defaultAttributes: {} + }); + } + }); + + let results = await elev.toJSON(); + t.is(normalizeEscapedPaths(results[0].content), `My ugly mug`); +}); + +test("Transform image file in folder with *combining* diacritics #253", async t => { + let elev = new Eleventy( "test", "test/_site", { + config: eleventyConfig => { + eleventyConfig.addTemplate("virtual.html", `My ugly mug`); + eleventyConfig.addPlugin(eleventyImageTransformPlugin, { + formats: ["auto"], + dryRun: true, // don’t write image files! + defaultAttributes: {} + }); + } + }); + let results = await elev.toJSON(); t.is(normalizeEscapedPaths(results[0].content), `My ugly mug`); }); \ No newline at end of file diff --git "a/test/\303\256le-de-myst-en-lego/les sous titres automatis\303\251s de youtube.jpg" "b/test/\303\256le-de-myst-en-lego/les sous titres automatis\303\251s de youtube.jpg" new file mode 100644 index 0000000..95de200 Binary files /dev/null and "b/test/\303\256le-de-myst-en-lego/les sous titres automatis\303\251s de youtube.jpg" differ