Browse SDKs · WASM
SDKsWASM

Create a Markdown message

Create a Markdown message with the WASM SDK.

Copy
const { data: message } = await openimsdk.createMarkdownMessage(
  '**Deployment complete**\n\n- Web\n- WASM',
);

The parameter is the Markdown source text. The SDK only transports the content. The receiving client must use a securely configured renderer, filter untrusted HTML, links, and script protocols, and provide a plain-text fallback for clients that do not support Markdown.

When the Promise resolves, it returns only a pending message object.