mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1625] [MERGED] feat(slack_bot): support markdown formatting #1995
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1625
Author: @Cluas
Created: 9/1/2025
Status: ✅ Merged
Merged: 9/1/2025
Merged by: @crazywoola
Base:
main← Head:feat-slack_bot_support_markdown📝 Commits (2)
018cb3ffeat(slack_bot): support markdown formattingf070818feat(slack_bot): integrate markdown_to_mrkdwn for message formatting📊 Changes
4 files changed (+23 additions, -9 deletions)
View changed files
📝
extensions/slack_bot/README.md(+1 -1)📝
extensions/slack_bot/endpoints/slack.py(+18 -5)📝
extensions/slack_bot/manifest.yaml(+3 -3)📝
extensions/slack_bot/requirements.txt(+1 -0)📄 Description
Summary
Enhanced Slack Bot plugin to support proper markdown formatting in messages. The bot now correctly converts standard markdown to Slack's mrkdwn format and uses proper Block Kit structure for rich message display. This is especially important in the era of LLMs, as many large models use markdown responses.
Changes Made
mrkdwntext typeTechnical Details
**text**→*text**text*→_text_~~text~~→~text~[text](url)→<url|text>`code`andcode blocksremain compatible"type": "section"and"type": "mrkdwn"Related Issues or Context
This enhancement addresses the need for proper markdown formatting support in Slack bot responses, ensuring that formatted text from Dify applications displays correctly in Slack channels with proper visual emphasis.
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txtEnvironment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
Testing Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.