def inline(text: str) ->str:
    """Get the given text as inline code.

    Parameters
    ----------
    text : str
        The text to be marked up.

    Returns
    -------
    str
        The marked up text.

    """
    if '`' in text:
        return '``{}``'.format(text)
    else:
        return '`{}`'.format(text)
