Be able to send in markdown format?
AndrewJDR opened this issue · comments
Maybe this is already easy to do... is it possible to send a message with robot.send() using markdown, html, or rich text of any kind?
To be specific, I'd like to include a proper hyperlink in a message sent by robot.send() -- like this -- without taking up all the space of the entire url.
I think it would just involve adding the format
and formatted_body
keys as per matrix-org/matrix-spec-proposals#471
Of course you then need to worry about sanitising messages...
+1
The Matrix spec (as of 0.6.1) supports HTML but not Markdown as a message format.
We could potentially support HTML in this adapter; supporting Markdown would require an additional dependency in this library which feels like the wrong approach.
Opened a PR but it's far from ideal. I will close it now as it's just a demonstration, happy for someone to pick it up and run with it if they feel inspired 😁