@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/index.mjs CHANGED
@@ -2741,7 +2741,8 @@ function resolveLink(fromFilePath, linkPath, linkType, contentDir) {
2741
2741
  return linkPath;
2742
2742
  }
2743
2743
  function extractLinks(filePath, contentDir, assetExtensions) {
2744
- const content = fs.readFileSync(filePath, "utf-8");
2744
+ const raw = fs.readFileSync(filePath, "utf-8");
2745
+ const content = raw.replace(/```[\s\S]*?```/g, (match) => " ".repeat(match.length));
2745
2746
  const links = [];
2746
2747
  for (const { regex, type } of LINK_PATTERNS) {
2747
2748
  regex.lastIndex = 0;