From 0ebfd8d054d6b2333d09073a5f5dfa258749735f Mon Sep 17 00:00:00 2001 From: Barb Paduch Date: Wed, 28 Jun 2017 15:27:56 -0400 Subject: [PATCH] Ignore links in code for link checker --- build-system/tasks/check-links.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-system/tasks/check-links.js b/build-system/tasks/check-links.js index 919c7b581938..d52e87bb1438 100644 --- a/build-system/tasks/check-links.js +++ b/build-system/tasks/check-links.js @@ -131,6 +131,9 @@ function filterWhitelistedLinks(markdown) { filteredMarkdown = filteredMarkdown.replace(/https:\/\/cdn.ampproject.org(?!\/)/g, ''); + // Links inside a block (illustrative, and not always valid) + filteredMarkdown = filteredMarkdown.replace(/(.*?)<\/code>/g, ''); + return filteredMarkdown; }