Fixes to validation for markdown links

https://www.pivotaltracker.com/story/show/60397572
https://www.pivotaltracker.com/story/show/60397200

Addresses comments by @AliceNewton in the tickets.