test and fix markdown parseLink