import re


def clean_line(description):
    """Formats catapult-server custom tags into readable strings.

    Args:
        description (str): Line to format.

    Returns:
        str: Formatted line.
    """
    description = re.sub(r'\\c ([a-zA-Z_]*)', r'<code class="docutils literal"><span class="pre">\1</span></code>', description)
    return description.replace('\\a ', '') \
        .replace('\\note', '<br/><b>Note</b>:') \
        .replace('std::', '') \
        .replace('\n', '')