Propagation of magnetohydrodynamic shocks in a thermally-conducting medium