Added code to handle markdown