import re


def set_methods_ado_links(text: str) -> str:
    """
    Add links to the markdown text compatible with Azure DevOps

    Parameters
    ----------
    text : str
        [description]

    Returns
    -------
    str
        [description]
    """
    text_links = text
    links = set(re.findall(r"\(#(.*)\)", text))
    for link in links:
        text_links = text_links.replace("(#{})".format(link), "(#module-`{}`)".format(link))
    return text_links