OwenMelbz yeah sorry it's still early 🙈
You can also rebind
'flarum.formatter' to your own implementation. Then when
CommentPost::setContentAttribute prepares it for the database your own implementation is used.
CommentPost::getContentAttribute renders it back by the way.
I'm not entirely sure you will be able to do this without running into issues, but if you do please let us know so we can amend things on our end.
Let me know if you have any further questions.