added markdown output option