Clean up markdown render method