conditional for links is wrapped around links only