Clean up markdown output