def reduce_headers(content, level, indent=1):
    """
    replaces the #* with level number of #

    :param content:
    :type content:
    :param level:
    :type level:
    :param indent:
    :type indent:
    :return:
    :rtype:
    """
    ignore = False
    lines = content.splitlines()
    headers = []
    out = []
    for line in lines:
        if line.startswith('`'):
            ignore = not ignore
        if line.startswith('#') and not ignore:
            line = line.replace('#' * level, '#')
            line = line.replace('# ', '#' * (indent - 1) + ' ')
        out.append(line)
    return out
