Convert Markdown to Slack Block Kit blocks using mistletoe. Current version: 0.2.1, requires Python >=3.11. Releases are infrequent, mostly bugfixes and type hint improvements.
pip install slack-blocks-markdownVerified import paths — ran on the pinned version, not inferred.
Parse Markdown string and output Slack Block Kit blocks as a list of dicts.
Use `converter.markdown_to_blocks(md_string)` instead.
Ensure your Python version is 3.11 or higher. Use `python -V` to check.
Check the README or test coverage for a list of supported elements. Use only common Markdown (headers, paragraphs, lists, code, links, inline styles).
Use the Slack SDK or direct HTTP POST to `chat.postMessage` with `"blocks": converter.markdown_to_blocks(md_string)`.