Changed the ordering of plain txt processing to avoid html junk in links