showcase/shell-docs/src/content/reference/bot/slack/markdownToMrkdwn.mdx
markdownToMrkdwn converts GitHub-flavored Markdown — what agents emit — into Slack's mrkdwn dialect. The adapter applies it automatically to every streamed chunk and every Section/Markdown block, so agent output renders correctly without the model knowing about mrkdwn.
import { markdownToMrkdwn } from "@copilotkit/bot-slack";
function markdownToMrkdwn(input: string): string;
**bold** → *bold*); links become mrkdwn <url|label> form; lists are normalized.`code` are left untouched; they render identically in both flavors.