Generate a References section.

    Parameters
    ----------
    doc : dict
        Dictionary produced by numpydoc

    Returns
    -------
    list of str
        Markdown for references section

def refs_section(doc):
    """
    Generate a References section.

    Parameters
    ----------
    doc : dict
        Dictionary produced by numpydoc

    Returns
    -------
    list of str
        Markdown for references section
    """
    lines = []
    if "References" in doc and len(doc["References"]) > 0:
        # print("Found refs")
        for ref in doc["References"]:
            # print(ref)
            ref_num = re.findall("\[([0-9]+)\]", ref)[0]
            # print(ref_num)
            ref_body = " ".join(ref.split(" ")[2:])
            # print(f"[^{ref_num}] {ref_body}" + "\n")
            lines.append(f"[^{ref_num}]: {ref_body}" + "\n\n")
            # print(lines)
    return lines