Getting markdown in the right format