refine markdown texts