def extract_info_from_md()

in scripts/internal/update_example_tables.py [0:0]


def extract_info_from_md(file_path):
    with open(file_path, "r") as f:
        content = f.read()

    match = re.search(r"---\s*title:\s*(.*?)\s*type:\s*(.*?)\s*---", content, re.DOTALL)
    if match:
        return match.group(1).strip(), match.group(2).strip()
    return None, None