xhs-md-to-plain-text

Installation
SKILL.md

XHS Markdown → Plain Text

把 Markdown 里的标记(标题 #、加粗 **、列表符号、引用 >、链接语法等)去掉,输出为 .txt,方便直接粘贴到小红书。

使用方法

Step 0:设置 SKILL_DIR

SKILL_DIR="/path/to/xhs-md-to-plain-text"

Step 1:生成纯文本

  • 生成完整文本(全文件去标记)
npx -y bun ${SKILL_DIR}/scripts/md2text.ts /path/to/article.md --out xhs-img
Related skills
Installs
6
GitHub Stars
1
First Seen
Feb 11, 2026