def split_text_to_paragraphs(text: str) -> list:
    """Split text into paragraphs

    A paragraphs is detected by an empty line

    :param text: input text
    :return: list of paragraphs
    """
    paragraphs = []
    current_paragraph = []
    for line in text.splitlines():
        # non empty line -> add to paragraph
        if len(line.strip()) > 0:
            current_paragraph.append(line)
        else:
            # empty line -> end of paragraph
            if len(current_paragraph) > 0:
                paragraphs.append('\n'.join(current_paragraph))
                current_paragraph = []

    if len(current_paragraph) > 0:
        paragraphs.append('\n'.join(current_paragraph))

    return paragraphs