Markdown in Unblu
Unblu supports a subset of Markdown to style and format text in chat messages and some translations. The subset of elements supported are:
-
Headings
-
Text formatting:
-
Italic
-
Bold
-
Underline
-
Strike through
-
-
Simple and complex links
-
Ordered and unordered lists
-
Quote blocks
-
Inline and block code
Markdown in chat messages
Use the configuration property com.unblu.conversation.message.chatMessageAsMarkdownEnabled to specify whether your agents and visitors can use Markdown in the messages they write.
If enabled, the content of chat messages entered in the UI’s text input field is interpreted as Markdown. For other message types, such as those from dialog bots, Markdown formatting is applied according to their respective configuration, independently of this setting.
While this configuration property can be set in the scopes APIKEY and AREA , the Unblu server only takes the USER , TEAM , and ACCOUNT scopes into account. If Markdown isn’t enabled for the sender of the message in one of these scopes, the Unblu server coerces the message to the text type SIMPLE_TEXT . |
Markdown in system messages
The system messages in Unblu Spark support the same subset of Markdown as chat messages. There’s no configuration property to enable or disable Markdown in system messages.
Markdown in translations
Not all translations support Markdown. If a translation supports Markdown, there’s a note to that effect beneath the input field in the translation editor of the Configuration Interface. The editor for these translations also provides a preview of the formatted translation to the right of the editor input.
Usage
Markdown is straightforward and can be picked up in a few minutes. The examples below demonstrate all the elements of Markdown that Unblu supports.
The examples do not show how to format chat messages well. |
Text formatting
|
|
Line breaks
|
|
This behavior only applies to Markdown in chat messages. In text properties, two or more line breaks end a block. |
Links
|
|
|
|
|
|
Lists
|
|
|
|
|
|
Quotes
|
|
Code
|
|
Combination
|
|