replace HTML linked markers with new format