Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to send in markdown format? #5

Open
AndrewJDR opened this issue Nov 30, 2016 · 5 comments
Open

Be able to send in markdown format? #5

AndrewJDR opened this issue Nov 30, 2016 · 5 comments

Comments

@AndrewJDR
Copy link

AndrewJDR commented Nov 30, 2016

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?

@AndrewJDR
Copy link
Author

AndrewJDR commented Nov 30, 2016

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.

@davidar
Copy link
Owner

davidar commented Feb 8, 2017

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...

@garrying
Copy link

+1

@xurizaemon
Copy link
Collaborator

xurizaemon commented Jul 30, 2021

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.

xurizaemon added a commit to xurizaemon/hubot-matrix that referenced this issue Jul 30, 2021
xurizaemon added a commit to xurizaemon/hubot-matrix that referenced this issue Jul 30, 2021
@xurizaemon
Copy link
Collaborator

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 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants