Fix quirks in markdown formatting