changed markdown implementation