Skip to main content

Overview

The Text plugin handles messages of type text in category message. It renders formatted text with support for @mentions, clickable URLs, and markdown syntax (bold, italic, strikethrough, code, blockquotes, lists).
Live Preview — interact with the text message bubble.Open in Storybook ↗

Bubble Rendering

The text bubble displays the message text after running it through the formatter pipeline:
  1. Markdown**bold**, _italic_, ~~strike~~, `code`, > blockquote, lists
  2. Mentions<@uid:xxx> tokens → styled @DisplayName chips
  3. URLs — bare URLs → clickable links with target="_blank"
Long messages are truncated with a “Read more” toggle (configurable via disableTruncation in the plugin context).

Context Menu Options


Conversation Preview

Returns the message text with markdown stripped and mentions resolved to display names. Example: @John: Check the **docs**@John: Check the docs

Text Formatters

The text plugin provides three built-in formatters via getTextFormatters(): Formatters run in priority order (lower = first). Each receives the output of the previous formatter. For custom formatters, see Text Formatters.

CSS Selectors