From 4ed703127d139d6c87974528a4230590adb7a67e Mon Sep 17 00:00:00 2001 From: Kristian Aune Date: Tue, 30 Jul 2024 08:55:06 +0200 Subject: [PATCH] Support <code> elements with attributes htmlproofer does not check links inside code-elements - these elements are removed. make sure to remove elements with attributes, too --- screwdriver.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screwdriver.yaml b/screwdriver.yaml index 451167f2f0..09e2696bd4 100644 --- a/screwdriver.yaml +++ b/screwdriver.yaml @@ -37,7 +37,7 @@ jobs: xargs grep -l "Click here if you are not redirected." | xargs rm # # htmlproofer does not check links inside -elements - find _site -name \*.html | xargs sed -i.orig 's///g; s/<\/code>//g;' + find _site -name \*.html | xargs sed -i.orig 's/]*>//g; s/<\/code>//g;' find _site -name \*.orig | xargs rm # bundle exec htmlproofer \