changed the method for markdown