def METHOD_NAME(self, text: str, style: int) -> str:
    """Apply Markdown formatting to keywords."""
    valid, bits, _ = self._project.index.scanThis("@"+text)
    if not valid or not bits:
        return ""
    result = ""
    if bits[0] in nwLabels.KEY_NAME:
        result += f"**{nwLabels.KEY_NAME[bits[0]]}:** "
        if len(bits) > 1:
            result += ", ".join(bits[1:])
    result += "  \n" if style & self.A_Z_BTMMRG else "\n\n"
    return result