fix: no images in see also

This commit is contained in:
svemagie
2026-04-23 08:50:13 +02:00
parent 8cec805551
commit 00f4e0182f
+1 -1
View File
@@ -1397,7 +1397,7 @@ export default function (eleventyConfig) {
try { try {
const content = readFileSync(inputPath, "utf-8"); const content = readFileSync(inputPath, "utf-8");
const escaped = siteUrl.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); const escaped = siteUrl.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
const re = new RegExp(`(?<!!)\\]\\((${escaped}/[^)\\s]+)\\)`, "g"); const re = new RegExp(`(?<!!)\\[[^\\]]*\\]\\((${escaped}/[^)\\s]+)\\)`, "g");
let m; let m;
while ((m = re.exec(content)) !== null) add(m[1]); while ((m = re.exec(content)) !== null) add(m[1]);
// Also extract reference-style link definitions and bare footnote URLs: // Also extract reference-style link definitions and bare footnote URLs: