def METHOD_NAME(text: str) -> str:
    """
    Removes rich syntax from the given text.
    Removes markup and ansi syntax.
    """
    output_no_syntax = Text.from_ansi(Text.from_markup(text).plain).plain
    return output_no_syntax