Text formatting and semantics
Tags
MessageML supports the following tags for formatting content within a message:
Tag | Description | Optional attributes |
| Insert a line break. | None. |
| Insert a hyperlink that will be displayed in the message. | • |
| Bold formatting.
Note: when receiving a message from an Agent that contains whitespace between the last character in a bolded section and the closing | • |
| Italics formatting.
Note: when receiving a message from an Agent that contains whitespace between the last character in an italics-formatted section and the closing | • |
| Preformatted text. | • |
| No formatting.
• This tag can be used to specify visual styles, by adding a | • |
| Format the text as a block of code. |
|
Examples
Here after you can find an example of a message sent by a bot and containing these formatting and semantics tags as well as the structure of the messageML sent:
Versions and Compatibility
Main features introduced | Agent needed to parse message sent by the bot | Client 2.0 release | Backward client-compatibility behavior (e.g. external rooms) | Client 1.5 release |
Initial release | Since the first version | Since the first version | - | Since the first version |
Closing <b> and <i> without line breaks* | Since the first version | Since the first version | - | 1.53 |
Support of the language attribute on <code> blocks. | Agent 20.14 | Since the first version | - |
Last updated