Fix plain/wiki links in markdown export.

This PR enables auto-linkifying of HTTP URLs in markdown mode.

The href_hyperlinks method was changed to be markdown-aware, and is called in both modes. When in markdown mode, it uses markdown syntax instead of HTML to linkify URLs.
However, this causes existing markdown links to be broken, since URLs are linkified twice. This is easily fixed using a regular expression which matches this specific duplicate markdown syntax.