Use a regular expression to try to detect unresolved links.

The naive grep'ing for ][ produces too many false positives from
code blocks using arrays.