matrix-bot-sdk
matrix-bot-sdk copied to clipboard
[Docs] How to work with rich replies
+1 on this doc!
It's very unclear if formatted messages requires both html and markdown, or if using only markdown (without accompanying HTML) is possible. Is it required that both markdown and HTML are provided as input?
- The RichReply tests demonstrates passing both markdown and HTML for a formatted message result.
- Mjolnir also just passes both formats to get a formatted result
- The 0.5.2 README had an example of creating a RichReply object with plaintext and no accompanying HTML, but it doesn't have any styling so doesn't really help 🙃
I am also struggling with this right now. Has somebody figured out how to send formatted messages from a bot? I could not find any documentation about it.
Worked find with just https://github.com/markdown-it/markdown-it render and sendTextHtml.