From ff1bd9c1b6c72df830c11d8b874d24a1d9e9453e Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Sat, 13 Jan 2024 15:13:15 +1100 Subject: [PATCH] t3 --- .drevops/docs/.utils/lint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drevops/docs/.utils/lint.sh b/.drevops/docs/.utils/lint.sh index 3cb233997..1ced0166f 100755 --- a/.drevops/docs/.utils/lint.sh +++ b/.drevops/docs/.utils/lint.sh @@ -44,11 +44,15 @@ for file in "${targets[@]}"; do sed -E 's/
||
/ /g' | # Remove HTML. sed -E 's/<([^<]+)>//g' | + # Remove code blocks. + sed '/^```/,/^```/d' | + # Remove inline code. + sed 's/`[^`]*`//g' | # Remove anchors. sed -E 's/\[.+\]\([^\)]+\)//g' | # Remove links. sed -E 's/http(s)?:\/\/([^ ]+)//g' | - aspell --lang=en --encoding=utf-8 --personal="${dictionary}" list + aspell --lang=en --encoding=utf-8 --personal="${dictionary}" list | tee /dev/stderr | [ "$(wc -l)" -eq 0 ] if [ "$?" -ne 0 ]; then exit 1