slackify-markdown

Convert markdown into Slack-specific markdown

MIT 22 个版本
安装
npm install slackify-markdown
yarn add slackify-markdown
pnpm add slackify-markdown
bun add slackify-markdown
README

Slackify-Markdown

Build Status codecov Known Vulnerabilities

Slackify-Markdown is a Markdown to Slack-specific-markdown converter, based on Unified and Remark.

Requirements

  • Node.js 22 or higher
  • ESM-only package (see Usage for details)

Install

npm install slackify-markdown

Usage

This package is ESM only. For CommonJS, use v4.x version of the package.

import { slackifyMarkdown } from 'slackify-markdown';

const markdown = `
# List of items

* item 1
* item 2
* item 3

[here is an example](https://example.com)
`;

const result = slackifyMarkdown(markdown);
console.log(result);
/*
 *List of items*

 • item 1
 • item 2
 • item 3

 <https://example.com|here is an example>
*/
版本列表
5.0.0 2025-11-07
4.5.0 2025-06-19
4.4.0 2023-08-18
4.3.1 2021-12-07
4.3.0 2021-05-12
4.2.0 2021-05-12
4.1.0 2021-01-19
4.0.0 2020-12-30
3.1.0 2020-10-20
3.0.3 2020-06-06
3.0.1 2020-06-06
2.1.0 2019-09-18
2.0.3 2019-09-18
2.0.2 2019-09-18
2.0.1 2019-09-18
2.0.0 2019-09-18
1.1.1 2019-03-05
1.1.0 2018-10-11
1.0.4 2018-08-06
1.0.3 2018-04-05
1.0.2 2018-03-30
1.0.1 2018-03-29