Fix bug when using hyphens within highlighted text.