diff --git a/src/content-linter/lib/linting-rules/internal-links-slash.js b/src/content-linter/lib/linting-rules/internal-links-slash.js index 6d44dd8b79ca..8a5c786a44eb 100644 --- a/src/content-linter/lib/linting-rules/internal-links-slash.js +++ b/src/content-linter/lib/linting-rules/internal-links-slash.js @@ -26,6 +26,8 @@ export const internalLinksSlash = { attr[1].startsWith(ignorePrefix), ), ) + // We can ignore empty links because MD042 from markdownlint catches empty links + .filter((attr) => attr[1] !== '') // Get the link path from the attribute .map((attr) => attr[1])