Download the PHP package daryledesilva/markdown-to-mrkdwn-php without Composer
On this page you can find all versions of the php package daryledesilva/markdown-to-mrkdwn-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download daryledesilva/markdown-to-mrkdwn-php
More information about daryledesilva/markdown-to-mrkdwn-php
Files in daryledesilva/markdown-to-mrkdwn-php
Package markdown-to-mrkdwn-php
Short Description Convert standard Markdown to Slack's mrkdwn format
License MIT
Informations about the package markdown-to-mrkdwn-php
markdown-to-mrkdwn-php
A lightweight, dependency-free PHP library for converting Markdown into Slack-compatible mrkdwn. It preserves code blocks, handles tables, blockquotes, lists, and more for seamless Slack messaging.
💡 What is this?
An easy-to-use, dependency-free PHP 7.4+ library that converts Markdown—headings, text formatting, lists, tables, blockquotes, and code blocks—into Slack’s mrkdwn format. Ideal for bots, integrations, or any app sending rich text to Slack.
✨ Features
…
📋 Supported Conversions
| Markdown | Slack mrkdwn |
|---|---|
# Heading |
*Heading* |
**Bold** |
*Bold* |
*Italic* / _Italic_ |
_Italic_ |
~~Strike~~ |
~Strike~ |
- [ ] Task |
• ☐ Task |
- [x] Task |
• ☑ Task |
- Item / 1. Item |
• Item / 1. Item |
`Inline code` | `Inline code` |
|
| lang | |
| code | code |
> Quote |
> Quote |
--- / *** / ___ |
────────── |
🔌 Plugin System
You can extend the converter with custom plugins (global, line or block scope):
Advanced plugin examples
Error handling
If an error occurs during conversion, the original Markdown text is returned unmodified.
🛠 Requirements
- PHP 7.4 or higher
📦 Installation
🚀 Usage
🧪 Testing
🔗 Testing in Slack
You can preview the converted mrkdwn in Slack’s Block Kit Builder:
https://app.slack.com/block-kit-builder/
📄 License
MIT
Inspired by the original Python package markdown_to_mrkdwn.
Created by @daryledesilva