Transform Markdown-style links to TeX-style href.