Add Markdown to Mrkdwn conversion for Slack messages#2
Merged
Conversation
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Contributor
|
@copilot please remember to delete the slack-cli when you're done. |
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
…cifier patterns Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add library for Markdown to Mrkdown conversion
Add Markdown to Mrkdwn conversion for Slack messages
Oct 19, 2025
Contributor
Author
Contributor
|
@copilot Good work! Please remove the ideas document. |
alexec
requested changes
Oct 19, 2025
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Contributor
Author
Done! Removed FEATURES.md and the suggested features section from README in commit that will be pushed. |
alexec
approved these changes
Oct 19, 2025
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.
Problem
The Slack CLI tool accepts messages but the Slack API uses Mrkdwn format, which differs from standard Markdown. Users need to manually convert their Markdown-formatted messages, which is inconvenient for coding agents and automation tools.
Solution
This PR implements automatic Markdown to Mrkdwn conversion, allowing users to write messages in standard Markdown format while ensuring compatibility with Slack's formatting requirements.
Key Changes
Automatic Format Conversion (
markdown.go)**text**or__text__→*text**text*→_text*~~text~~→~text~[text](url)→<url|text>* itemor- item→• itemExample Conversion
Testing (
markdown_test.go)Documentation Updates (
README.md)Benefits
Users can now send messages using familiar Markdown syntax without worrying about Slack's formatting differences.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.