What is the code for centering an uploaded image?

If you’re willing to use the BBCode plugin (and understand its risks & benefits), it allows for anyone to center images using only the editor.

https://github.com/discourse/discourse-bbcode