Skip to content

fix(slack): convert special mentions to readable text - #960

Open
Shubham-Padkonde wants to merge 1 commit into
vercel:mainfrom
Shubham-Padkonde:fix/slack-special-mentions
Open

Shubham-Padkonde wants to merge 1 commit into
vercel:mainfrom
Shubham-Padkonde:fix/slack-special-mentions

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Summary

Converts inbound Slack special mentions to readable text, the special-mentions half of #956:

  • <!here>, <!channel>, <!everyone> (with or without a label) → @here, @channel, @everyone
  • <!subteam^S…|@handle>@handle, and <!subteam^S…>@S…

This follows the existing <@U…|name>@name conversion in convertSlackTokens, so the raw tokens no longer end up in message.text or parse to an mdast html node. The list half of #956 (building lists from rich_text_list blocks) is not part of this PR.

The table-cell test now expects @S789 instead of the raw <!subteam^S789>, since cell text goes through the same converter.

Test plan

  • New format and parseMessage tests; both fail before this change.
  • vitest run in packages/adapter-slack (793 tests), tsc --noEmit, and ultracite check on the changed files pass. I did not run the full pnpm validate.

Checklist

  • All commits are signed and verified
  • All commits are signed off for the DCO (git commit -s)
  • pnpm validate passes
  • Changeset added (or N/A — see CONTRIBUTING.md)
  • Documentation updated (or N/A)

🤖 Generated with Claude Code

Inbound `<!here>`, `<!channel>`, `<!everyone>` and `<!subteam^ID|@handle>`
tokens were not converted by slackMrkdwnToMarkdown, so they stayed raw in
message.text and parsed to an html node. Convert them to `@here`,
`@channel`, `@everyone` and `@handle`, like `<@U…|name>` user mentions.

Refs vercel#956

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Shubham Padkonde <shubhampadkonde12@gmail.com>
@Shubham-Padkonde
Shubham-Padkonde requested a review from a team September 19, 2026 04:23
@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

@Shubham-Padkonde is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant