Text this: Non-linear enhancement of ultrafast X-ray diffraction through transient resonances