tidy up mess in markdown