Use BTT to commandeer Cmd-i for Italics in Safari

In recent months, while writing messages in Gmail, Cmd-i has started launching a new email rather than italicizing the selected text. I've researched various options (notably assigning a different keyboard combo to "Email this page" in System Prefs) but none have worked. Is there a way for BTT to apply italics to text using the Cmd-i shortcut in Safari just like it does in every single other app for the last 40 years?

That's weird, on my systems cmd+i works fine in Gmail.

It's hard to achieve this with BTT, I think the only option would be to use a Java Script transformer:

async (clipboardContentString) => {
   return `<i>${clipboardContentString}</i>`
}

However this would remove any other formatting from the selected text ;-(