@djangocfg/seo 2.1.206 → 2.1.207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -3211,7 +3211,8 @@ function resolveLink(fromFilePath, linkPath, linkType, contentDir) {
3211
3211
  return linkPath;
3212
3212
  }
3213
3213
  function extractLinks(filePath, contentDir, assetExtensions) {
3214
- const content = fs4.readFileSync(filePath, "utf-8");
3214
+ const raw = fs4.readFileSync(filePath, "utf-8");
3215
+ const content = raw.replace(/```[\s\S]*?```/g, (match) => " ".repeat(match.length));
3215
3216
  const links = [];
3216
3217
  for (const { regex, type } of LINK_PATTERNS) {
3217
3218
  regex.lastIndex = 0;