MARKDOWN format - how to indicate Image Size ?Answered
when using MARKDOWN, (![alt text](https://hub.openrainbow.com/img/logohub.svg)),
what is the format to indicate a width limite (to 200px eg or to the size of the desktop messag area ?).
Currently, image is pushed 100% of its original width which is overflowing the display screen sometimes .
The only tags supported are (https://hub.openrainbow.com/#/documentation/doc/sdk/node/guides/Answering_chat_message) as described:
Interaction with Rainbow clients
At this time of writting, Rainbow clients manage Message language and are able to display messages using a
Markdowncontent type. This feature is not officially supported but if your Node.JS application interacts with a Rainbow official client, this can help.
Here is the list of Markdown tags supported by the Rainbow official Web application (Rainbow Web client and Rainbow Desktop client):
+or `* ``
> a Blockquote.
Note: Other Markdown tags can be used specifically if you have provided your own end-user application but will not be rendered correcly in the Rainbow official clients.
Subject is used when displaying Rainbow notification messages.
Note: At this time of writing, Markdown is not supported by the Rainbow mobile clients.
and no way to force an image size.
No way described also in official Markdown doc: https://daringfireball.net/projects/markdown/syntax#img
Up to you to resize the image before including them to the message. Or if your server is "resize on the fly" - capable, use it
For example on some servers:
"/images/the_img.jpg?w=120"to force it at 120px width
Warning also to share an https// image url ! Instead of that all clients in HTML5 will display a Warning "mixed content".
Please add a request to Markdown project for adding an image size to
=> not linked to Rainbow.
Please read my reply. You said "On-the-fly resizing must be supported by Rainbow Clients", I said: up to your server, where the image is hosted (not Rainbow servers) to resize the image if possible.
Or as I said also, before attaching the IMG in your Markdown message, up to you to resize it in your code !
Please sign in to leave a comment.