xhs-md-to-plain-text

将 Markdown 转为适合小红书粘贴的纯文本(去掉

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "xhs-md-to-plain-text" with this command: npx skills add daqi/daqi-skills/daqi-daqi-skills-xhs-md-to-plain-text

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
  • 只抽取 ## 正文内容## 标签 之间(更适合直接发正文)
npx -y bun ${SKILL_DIR}/scripts/md2text.ts /path/to/article.md --body-only --out xhs-img/body.txt

参数

npx -y bun ${SKILL_DIR}/scripts/md2text.ts <markdown-file> [options]

Options:
  --out <path>       输出文件路径或输出目录(默认: xhs-img)
  --body-only        仅抽取“正文内容”段(## 正文内容 → ## 标签)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

article-analyzer

No summary provided by upstream source.

Repository SourceNeeds Review
10-daqi
General

article-polish

No summary provided by upstream source.

Repository SourceNeeds Review
General

xhs-writer

No summary provided by upstream source.

Repository SourceNeeds Review
General

article-outliner

No summary provided by upstream source.

Repository SourceNeeds Review