def find_smallest_headers(content):
    """
    find the smallest header level
    :param content:
    :type content:
    :return:
    :rtype:
    """
    ignore = False
    lines = content.splitlines()
    headers = []
    for line in lines:
        if line.startswith('`'):
            ignore = not ignore
            break
        if line.startswith('#') and not ignore:
            headers.append(line.split(' ')[0])
    headers = set(headers)
    level = sorted(headers, key=len)
    if len(level) == 0:
        level = 1
    else:
        level = len(level[0])
    return level
