@djangocfg/seo 2.1.206 → 2.1.208
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 +2 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/content/link-checker.ts +3 -1
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
|
|
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;
|