Hi @jbrains
Discourse only accepts an array of allowed HTML tags and attributes. Adding an arbitrary class to an element isn’t possible without creating a plugin.
However, if you want to customize an image inside your post, you can put it inside a [wrap]
tag or something similar.
Have a look at Customize posts' contents with your own styles