Markdown: move link type checked to document.body. fixes #188

This allows us to catch links in content that is being injected but has
not been scanned yet.