Connecting the escape fraction of Lyman-alpha and Lyman-continuum photons in star-forming galaxies at z ≃ 4–5 | Synapse