Repository navigation
feat: Rich text formatting for Slack responses via slackify-markdown (#223) - #241
Merged
Merged
Conversation
added 2 commits
April 1, 2026 15:24
…223) Add format_response() to ChannelAdapter base class for channel-specific markdown conversion. Slack adapter converts standard markdown to mrkdwn using slackify-markdown library. Telegram adapter wired to use existing _markdown_to_html via the same interface. - adapters/base.py: format_response() with passthrough default + note about future abstraction if formatting needs grow - adapters/slack_adapter.py: override using SlackifyMarkdown converter with graceful fallback on import error or conversion failure - adapters/telegram_adapter.py: override using existing _markdown_to_html - docker/backend/Dockerfile: add slackify-markdown dependency - 13 unit tests: conversion, fallback, contract Fixes #223
vybe
approved these changes
Apr 2, 2026
vybe
left a comment
Contributor
There was a problem hiding this comment.
Validated via /validate-pr — clean, well-scoped PR. Follows adapter patterns, comprehensive tests, feature flow updated, security checks pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Agent responses in Slack are now formatted using Slack's native mrkdwn syntax instead of raw markdown. Bold, links, code blocks, lists, and headings render correctly.
Architecture
Added
format_response(text) -> strto theChannelAdapterbase class:slackify-markdownlibrary (**bold**→*bold*,[link](url)→<url|link>, etc.)_markdown_to_html()via same interfaceformat_responsewith their own converterChanges
adapters/base.py:format_response()with passthrough defaultadapters/slack_adapter.py: override usingSlackifyMarkdownwith graceful fallbackadapters/telegram_adapter.py: override using existing_markdown_to_htmldocker/backend/Dockerfile: addslackify-markdowndependencyDeployment
Requires
docker compose build backend— new pip dependency.Test plan
tests/unit/test_slack_rich_text.py)Fixes #223