added markdown handling