def combine_bolds(graph_text):
    """
    Make ID marker bold and remove redundant bold markup between bold elements.
    """
    if graph_text.startswith("("):
        graph_text = (
            graph_text.replace("  ", " ")
            .replace("(", "**(", 1)
            .replace(")", ")**", 1)
            .replace("** **", " ", 1)
        )
    return graph_text