def _remove_output_cell(cell):
    """Remove the output of an ipymd cell."""
    cell = cell.copy()
    if cell['cell_type'] == 'code':
        cell['output'] = None
    return cell
Remove the output of an ipymd cell.
ipymd/utils/utils.py