def format_link(url, md_text, md):
    """
    Formats url link depending on if it's Mardown or print function.

    Parameters
    ----------
    url: str
        Url string to the website
    md_text: str
        Text to display in hyperlink if it's markdown
    md: bool
        Whether the text is display in Markdown or with print function
    """
    return url if not md else f'[{md_text}]({url})'
