fix: no images in see also
This commit is contained in:
+1
-1
@@ -1397,7 +1397,7 @@ export default function (eleventyConfig) {
|
||||
try {
|
||||
const content = readFileSync(inputPath, "utf-8");
|
||||
const escaped = siteUrl.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
||||
const re = new RegExp(`(?<!!)\\]\\((${escaped}/[^)\\s]+)\\)`, "g");
|
||||
const re = new RegExp(`(?<!!)\\[[^\\]]*\\]\\((${escaped}/[^)\\s]+)\\)`, "g");
|
||||
let m;
|
||||
while ((m = re.exec(content)) !== null) add(m[1]);
|
||||
// Also extract reference-style link definitions and bare footnote URLs:
|
||||
|
||||
Reference in New Issue
Block a user