Agent skill

bm-md

使用 bm.md 服务进行 Markdown 排版、渲染和格式转换,支持微信公众号与通用 HTML 输出

miantiao-me1,993★ · 3 repos on radarProfile →
claude-codeAGPL-3.0
Install
npx skills add miantiao-me/bm.md --skill bm-md --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/bm-md/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 602
Language: TypeScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# bm.md Markdown 排版技能 ## 概述 bm.md 是一个专业的 Markdown 排版工具,提供以下核心能力: - **Markdown 渲染**:将 Markdown 转换为带样式的 HTML,支持 14 种排版风格 - **HTML 转 Markdown**:将 HTML 内容逆向转换为 Markdown 格式 - **纯文本提取**:从 Markdown 中提取纯文本,移除所有格式标记 - **格式校验与修复**:自动检测并修复 Markdown 格式问题 优先使用本地 CLI,只有在无 Node.js 环境或无法执行命令时才使用 REST API。 ## 执行优先级 1. **优先使用 CLI**:如果本地可执行 `node --version`,使用 `bmmd` 命令处理 Markdown。 2. **CLI 调用方式**:如果系统已安装 `bmmd`,直接使用;否则使用 `npx -y bmmd` 临时运行。 3. **兜底使用 REST API**:如果没有 Node.js 环境、无法执行本地命令,或用户明确要求远程调用,再使用 `https://bm.md/api/markdown/*`。 CLI 默认将结果输出到 stdout,可通过 `--output <file>` 写入文件。REST API 返回 JSON,结果在 `result` 字段中。 --- ## 可用工具 ### 1. Markdown 渲染 将 Markdown 源文本渲染为带内联样式的 HTML,可直接复制到富文本编辑器。 **CLI 示例(优先)**: ```bash npx -y bmmd render article.md --platform wechat --output article.html ``` 支持 stdin: ```bash cat article.md | npx -y bmmd render --platform wechat > article.html ``` **端点**: `POST https://bm.md/api/markdown/render` **请求参数**: | 参数 | 类型 | 必填 | 默认值 | 说明 | | ---------------------- | ------- | ---- | -------------- | --------------------------------------------------------------------- | | `markdown` | string | 是 | - | Markdown 源文本,支持 GFM 语法、数学公式 | | `markdownStyle` | string | 否 | `ayu-light` | 排版样式

What's inside
Steps it walks through
  1. 概述
  2. 执行优先级
  3. 可用工具
  4. 1. Markdown 渲染
  5. 2. HTML 转 Markdown
  6. 3. 提取纯文本
  7. 4. Markdown 格式化
  8. 参数参考
  9. 排版样式 (markdownStyle)
  10. 代码主题 (codeTheme)
  11. 目标平台 (platform)
  12. 使用场景
  13. 注意事项
Commands it runs
npx -y bmmd render article.md --platform wechat --output article.html
cat article.md | npx -y bmmd render --platform wechat > article.html
curl -X POST https://bm.md/api/markdown/render \
About this skill
What does the bm-md skill do?

使用 bm.md 服务进行 Markdown 排版、渲染和格式转换,支持微信公众号与通用 HTML 输出

How do I install it?

Run `npx skills add miantiao-me/bm.md --skill bm-md --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From miantiao-me/bm.md, a repository with 602 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going