Added markdown logic.