Skip to main content

@slack/types / MarkdownBlock

Interface: MarkdownBlock

Defined in: block-kit/blocks.ts:456

Description​

This block can be used with AI apps when you expect a markdown response from an LLM that can get lost in translation rendering in Slack. Providing it in a markdown block leaves the translating to Slack to ensure your message appears as intended. Note that passing a single block may result in multiple blocks after translation.

See​

Markdown block reference.

Extends​

Properties​

block_id?​

optional block_id?: string;

Defined in: block-kit/blocks.ts:50

Description​

A string acting as a unique identifier for a block. If not specified, a block_id will be generated. You can use this block_id when you receive an interaction payload to identify the source of the action. Maximum length for this field is 255 characters. block_id should be unique for each message and each iteration of a message. If a message is updated, use a new block_id.

Inherited from​

Block.block_id


text​

text: string;

Defined in: block-kit/blocks.ts:464

Description​

The standard markdown-formatted text. Limit 12,000 characters max.


type​

type: "markdown";

Defined in: block-kit/blocks.ts:460

Description​

The type of block. For a markdown block, type is always markdown.

Overrides​

Block.type