added markdown conversion functionality