def remove_section_header(text):
    """Return text with section header removed.

    >>> remove_section_header('----\\nfoo\\nbar\\n')
    'foo\\nbar\\n'

    >>> remove_section_header('===\\nfoo\\nbar\\n')
    'foo\\nbar\\n'

    """
    stripped = text.lstrip()
    if not stripped:
        return text
    first = stripped[0]
    if not (first.isalnum() or first.isspace() or stripped.splitlines()[0].
        strip(first).strip()):
        return stripped.lstrip(first).lstrip()
    return text
