Fixing --ignore-re pattern

This commit is contained in:
Lucas Cimon 2018-02-17 23:25:18 +01:00
parent 841c3bfaad
commit 4908cf9d79
No known key found for this signature in database
GPG Key ID: 6AF36E0DE97FE852
1 changed files with 1 additions and 4 deletions

5
run.sh
View File

@ -35,10 +35,7 @@ test_ludochaordic () {
# Too many missing img alt attributes in thoses:
rm output/street-art-and-hedonogeolostism-in-london.html output/variante-2-joueurs-pour-bang-le-jeu-de-des.html
html5validator --root output/ \
--ignore-re='Element "style" not allowed as child of element' \
--ignore-re='Text not allowed in element "iframe" in this context' \
--ignore-re='No "p" element in scope but a "p" end tag seen.' # issue with pelican renderer: <p> contains legally only inline-/inline-block-elements
html5validator --root output/ --ignore-re='.*(Element "style" not allowed as child of element.*|Text not allowed in element "iframe" in this context.|No "p" element in scope but a "p" end tag seen.)' # issue with pelican renderer: <p> contains legally only inline-/inline-block-elements
cp ../pelican-mg/.htmlhintrc output/
htmlhint output/