Fixing the newline issue in the markdown output