The calculated distance (air line) between Damascus and Idlib is approximately 168 miles respectively 271 kilometers.
By car or train, the actual journey to Idlib is certainly longer, as only the direct route (as the crow flies) between Damascus and Idlib has been calculated here.