added markdown formatter for output