Skip to content

Commit

Permalink
Support <code> elements with attributes
Browse files Browse the repository at this point in the history
htmlproofer does not check links inside code-elements - these elements are removed.

make sure to remove elements with attributes, too
  • Loading branch information
kkraune authored Jul 30, 2024
1 parent 93d1215 commit 4ed7031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
xargs grep -l "Click here if you are not redirected." | xargs rm
#
# htmlproofer does not check links inside <code>-elements
find _site -name \*.html | xargs sed -i.orig 's/<code>//g; s/<\/code>//g;'
find _site -name \*.html | xargs sed -i.orig 's/<code[^>]*>//g; s/<\/code>//g;'
find _site -name \*.orig | xargs rm
#
bundle exec htmlproofer \
Expand Down

0 comments on commit 4ed7031

Please sign in to comment.