A library to convert Markdown to Slack's mrkdwn format
Maintained. Last release 6 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install markdown-to-mrkdwnmarkdown_to_mrkdwn
A lightweight, efficient library for converting standard Markdown to Slack's mrkdwn format. This library helps you maintain consistent formatting when sending messages to Slack from your applications.
Features
- Fast and lightweight conversion from Markdown to Slack's mrkdwn format
- No external dependencies
- Comprehensive support for Markdown elements:
- Headings (H1, H2, H3, H4, H5, H6)
- Text formatting (bold, italic, strikethrough)
- Lists (ordered and unordered, with nesting)
- Ordered lists (numbered lists with proper indentation)
- Task lists (checked and unchecked items)
- Tables (with header formatting)
- Links and image references
- Code blocks (with language specification preserved)
- Blockquotes
- Horizontal rules
- Preserves code blocks without converting their contents
- Handles special characters and edge cases