If I’m watching reply-button and replacing it with <kbd>[wrap=icon id=fa-share][/wrap] Reply</kbd> I get a button, but everything else is in text form like this:
[wrap=icon id=fa-share][/wrap] Reply
HTML is checked and it doesn’t care if I have or haven’t fa-share in svg sub list.
But if I use it directly in a post it works, as here: Reply
In Discourse, when using watched words to replace terms, you can indeed use BBCode in the replacement content. However, only a subset of common BBCode tags is supported. The supported tags include basic text formatting like [b]strong[/b], [i]emphasis[/i], [u]underlined[/u], [s]strikethrough[/s], and certain other tags for images, URLs, and quotes.
Here is a basic example of using BBCode:
Bold text: [b]This is bold[/b]
Italic text: [i]This is italic[/i]
Underlined text: [u]This is underlined[/u]
For more specific styling like color changes, BBCode also includes [color=red]Red text[/color], but support for color may require additional plugins or adjustments, as described in this topic on Discourse BBCode.
Lastly, if you’re looking to add custom BBCode or have more complex formatting requirements, further customization or use of plugins might be necessary.
For more details on supported BBCode in Discourse, you can review the comprehensive list in the Discourse Formatting Guide.