There's a spec for some very lightweight Markdown-like formatting syntax, which is used e.g. in Conversations and Converse.js:
https://xmpp.org/extensions/xep-0393.html

(Source: https://opkode.com/blog/2021-09-13-converse-8/)
I think we can apply this independent of protocol used.