# Authoring Markdown externally and getting even 'prettier' output in Slack with \`md2slack\`

DevFeed: [Authoring Markdown externally and getting even 'prettier' output in Slack with \`md2slack\`](<https://devfeed.tech/articles/authoring-markdown-externally-and-getting-even-prettier-output-in-slack-with-md2slack-62756.md>)

Original publisher: [Read original article](<https://www.jvt.me/posts/2026/09/30/slack-prettier/>)

Author: Jamie Tanna

Published: 2026-09-30T20:01:32Z

Content type: tutorial

Language: en

Sources: [Jamie Tanna](<https://devfeed.tech/sources/articles-on-jamie-tanna-software-engineer.md>)

Topics: [Markdown](<https://devfeed.tech/topics/markdown.md>), [Slack](<https://devfeed.tech/topics/slack.md>), [Prettier](<https://devfeed.tech/topics/prettier.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [blogumentation](<https://devfeed.tech/tags/blogumentation.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-sonnet](<https://devfeed.tech/tags/claude-sonnet.md>), [code](<https://devfeed.tech/tags/code.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [slack](<https://devfeed.tech/tags/slack.md>)

## AI overview

The author describes using Slack Block Kit and API calls to publish richer Markdown messages in Slack, then using Claude Sonnet 5 to create the md2slack command-line tool. The tool renders content such as tables and syntax-highlighted code in Slack; installing a Slack app in a workspace may require additional setup.

## Source excerpt

You know what's a little bit sad to think to yourself? Wow, I'm a little bit jealous of how nice that person's Slack message looks And yet, that something I thought to myself last week 😅 I was looking at a colleague's message - which was posted to Slack via Claude - and it had the regular sort of rendered-Markdown that you'd expect from Slack, but inline in the message it had a pretty-rendered table, and a syntax-highlighted code snippet, followed by other bits of text. (Aside: I'm not really a fan of people using AI to post to Slack, because it infers that a) the human may not be involved in the loop and b) does that mean all our private conversations are now being ingested by the AI provider?) This wasn't a "normal" message that could be posted normally, especially as it included multiple types of content all rendered nicely. After doing some digging, it looks like it was created using the Slack Block Kit, which is much more powerful than the interface you get through Slack's clients. With a bit of help from Claude Sonnet 5 I managed to get it to reproduce the message via Block Kit and some API calls, which then led me to what I really wanted - to be able to post these sorts of rich messages myself. This is a step further on my journey of writing Markdown externally and then getting it into Slack, which I've talked about before on Linux or on Mac. I set Claude Sonnet 5 on creating a command-line tool that would allow posting a richer Markdown body into Slack, which I've published as md2slack. For example, let's take the following Markdown <!-- Co-authored-by: Claude Sonnet 5 --> # Deploy Failure: `payments-api` **Status:** investigating -- pods crash-looping since ~14:02 UTC. We think this is caused by a bad config value pushed in the last release. See the [rollout history](https://example.com/rollouts) for context. ## What we know - Error only appears on the `us-east` cluster - Started right after `v2.4.1` rolled out - ~~Not~~ related to the database migration -- r