fix: no images in see also
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user