@@ -351,12 +351,44 @@ find . -type f -name "*.md" \
351351 -not -path "./benchmark/bench-report/dist*"
352352```
353353
354−The following executes the markdown link checking on the results:
354+The following executes the markdown link checking with proper configuration on
355+the results. This also checks all the links are absolute to the root of the
356+repo.
355357
356358```
357359find . -type f -name "*.md" \
358360 -not -path "./dist*" \
359361 -not -path "./.stack*" \
360362 -not -path "./benchmark/bench-report/dist*" \
361− -exec npx markdown-link-check --quiet {} \;
363+ -exec npx markdown-link-check -c /dev/stdin --quiet {} \; <<EOF
364+{
365+ "ignorePatterns": [
366+ {
367+ "pattern": "^http"
368+ },
369+ {
370+ "pattern": "^ftp"
371+ },
372+ {
373+ "pattern": "^mailto"
374+ }
375+ ],
376+ "replacementPatterns": [
377+ {
378+ "pattern": "^", "replacement": "{{BASEURL}}"
379+ }
380+ ]
381+}
382+EOF
383+```
384+
385+Once you run that, you can check all the links again without the config,
386+filtering in only `http`, `ftp`, and `mailto` links.
387+
388+```
389+find . -type f -name "*.md" \
390+ -not -path "./dist*" \
391+ -not -path "./.stack*" \
392+ -not -path "./benchmark/bench-report/dist*" \
393+ -exec npx markdown-link-check --quiet {} \; 2>&1 | grep -e "http" -e "ftp" -e "mailto"
362394```