Functionality for converting html into markdown