docs cleanup
do doc-link replacement on markdown tokens, rather than on rendered html (so we can correctly exclude doc-link placeholders wrapped in code blocks) (fixes #11)