Text this: Ibn al-Khatib and his theory of contagion