html2markdown

仓库创建 2026年2月16日最近提交 21 天前SkillHot 收录 20 天前
▸ 精选理由

基于成熟开源工具快速批量提取与转换网页内容为 Markdown。

这个 Skill 做什么

使用 html2markdown CLI 将 HTML 页面或片段转换为干净、可读的 Markdown。

用 html2markdown CLI 把 HTML 页面或片段转成干净、可读的 Markdown。当你要抓取网页内容、把网页批量或单页转换为 Markdown,或把 curl 的输出做二次处理时特别方便。输出干净易读,支持从 stdin 管道输入或批量文件转换,方便脚本化和流水线使用。

▸ 展开 SKILL.md 英文原文

This skill should be used when the user asks to "convert HTML to markdown", "scrape a webpage to markdown", "download a page", "download a webpage", "extract content from HTML", "pipe HTML to markdown", "batch convert HTML files", or mentions "html2markdown", "html-to-markdown", or converting/downloading websites/pages to markdown format. Do NOT trigger on "fetch" (that implies WebFetch, not CLI conversion).

内容创作HTML 转换MarkdownCLI通用
0
Stars
0
Forks
6
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/moiri-gamboni/roost/main/files/skills/html2markdown/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/moiri-gamboni/roost/main/files/skills/html2markdown/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# html2markdown CLI

Convert HTML to clean, readable Markdown using the `html2markdown` CLI (v2) from [JohannesKaufmann/html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown).

## Core Usage Patterns

### Pipe from stdin

```bash
echo "<strong>important</strong>" | html2markdown
curl --no-progress-meter http://example.com | html2markdown
```

### File conversion

```bash
html2markdown --input file.html --output file.md
html2markdown --input "src/*.html" --output "dist/"
html2markdown --input file.html --output file.md --output-overwrite
```

When `--input` is a directory or glob, `--output` must be a directory.

### Content filtering with CSS selectors

```bash
# Only conver
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有