def strip_yaml(text):
    """
    strip starging yaml, between first --- and next --- from text

    :param text:
    :return:
    """
    if text[:3] != '---':
        return text
    else:
        stext = text.split('\n')
        stext.pop(0)
        n = 0
        for ln in stext:
            if ln != '---':
                n += 1
            else:
                n += 1
                return '\n'.join(stext[n:])