Conversation subjects, User Messages and System Messages support limited wiki-style formatting.

Markup

TalkJS supports limited markup syntax similar to popular chat tools such as WhatsApp and Slack:

text result
_italic_ italic
*bold* bold
~strikethrough~ strikethrough
```code``` code

Only code can contain newlines; all other markup is only applied when the marked-up text contains no newlines.

Markup is only applied if the begin/end-characters come at the beginning or the end of a word. For example:

  • _this becomes italic_
  • this_ doesn't _change.

Multiple kinds of markup can be combined _*like this*_.

You can make clickable text with simple <..|..> formatting. All URLs must be absolute.

Note: This syntax is intended as a simple way to make programmatically generated messages a bit more interactive. Thefore, it only works with messages sent via the REST API and not with messages sent from the chat UI.

Clickable URLs

Unformatted URLs are also made clickable in all messages, just like they are in emails:

Note: this only works if the "Suppress Contact Information" role setting is disabled or configured such that the specified URL is not masked.

Emojis

Like in user messages, all unicode emojis are supported. Just put the unicode emoji character in the message string and TalkJS will make them work appropriately cross-platform.