changed order of urlizing text and converting markdown to make autohighlighting urls more robust