Make templates consistent with how links are checked- v2

This is a replacement for #65 - it splits the commit to only include changes to .md and .html files.

The old branch is preserved for posterity- we will be discarding the affected functions in tools/check anyway, so there is no need to merge that file to the main repo. If you'd like to try that modified version of the validator, it will remain on the old branch until this pull request is closed.
I want to discovery why this change happen.