Electrocatalysis of S-doped carbon with weak polysulfide adsorption enhances lithium-sulfur battery performance.