An updated analytic model for attenuation by the intergalactic medium