# 使用 Homebrew 安装 html2markdown

查看 html2markdown 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:html2markdown
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install html2markdown
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:html2markdown
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/html2markdown>
- **版本:** 2.5.2
- **来源摘要:** Convert HTML to Markdown
- **主页:** <https://html-to-markdown.com>
- **仓库:** <https://github.com/JohannesKaufmann/html-to-markdown>
- **上游文档:** <https://github.com/JohannesKaufmann/html-to-markdown>
- **许可证:** MIT
- **源码归档:** <https://github.com/JohannesKaufmann/html-to-markdown/archive/refs/tags/v2.5.2.tar.gz>
- **最后更新:** 2026-06-07T15:08:40Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- html2markdown (cli)
- html2markdown (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.5.2
- 管理器更新时间: 2026-06-07
- 本地数据: OK
- 上游仓库: https://github.com/JohannesKaufmann/html-to-markdown
- 检测到的最新版本: v2.5.2 (当前)
## 项目历史与用法

html2markdown is the Homebrew-packaged command-line face of Johannes Kaufmann's html-to-markdown project, a Go implementation for turning HTML into readable Markdown. Its appeal comes from using an HTML parser and conversion rules instead of regular-expression scraping.

### 项目历史

The repository was created in 2018 and presents the project as a Go library that converts HTML to Markdown with parser-based handling for unknown input. The README emphasizes extensibility through rules and plugins, with support for GitHub-flavored Markdown features such as tables, strikethrough, and task-list items.

The release stream shows steady versioned packaging, with the 1.x series active through 2024 and the 2.x series appearing afterward. Release assets include platform archives and package artifacts, which explains why a library-oriented Go project also fits Homebrew as a CLI formula.

### 采用历史

The project is visible in Go documentation, Homebrew, and Debian's Go library packaging. That adoption pattern is common for Go conversion libraries: developers embed the library in migration tools, while package managers expose a small command-line converter for one-off document cleanup.

### 使用方式

Typical use cases are converting copied web fragments, archived pages, CMS exports, or generated HTML into Markdown for documentation systems. The README's rule and plugin APIs make it useful when a team needs repeatable conversion rules instead of a generic all-purpose document converter.

### 为什么软件包爱好者会关心

For package nerds, html2markdown is interesting because it occupies the narrow lane between heavyweight converters such as Pandoc and tiny ad hoc scripts. It packages a parser-backed Go library as an installable utility, giving shell users a focused HTML-to-Markdown tool with binaries across platforms.

### 时间线

- 2018: The html-to-markdown repository was created on GitHub.
- 2020: The v1.2.0 release continued the early 1.x line.
- 2021: v1.3.0 added nested-list focused work.
- 2023: v1.4.0 added escaping control, followed by v1.5.0 list-start work.
- 2024: v1.6.0 landed before the alpha 2.0 releases.
- 2025: v2.3.0 identified table-plugin work in the release title.
- 2026: v2.5.2 shipped with multiple platform artifacts.

### Related projects

- The README names Turndown for JavaScript and lunny/html2md as related projects. In practice, users also compare this kind of tool with Pandoc, html2text, and bespoke site-migration scripts.

### 来源

- GitHub repository and release metadata document the repository creation date and versioned release history.
- Homebrew and Debian package pages support package-manager adoption.
- The GitHub README documents parser-based conversion, rules, plugins, security caveats, and related projects.


## 安全说明

没有找到 html2markdown 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** html2markdown
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [html2text](https://www.automicvault.com/zh-hans/pkg/brew/html2text/) - Shares av.db curated category or tags: cli, conversion, converter, developer-tools, html.
- [markdown](https://www.automicvault.com/zh-hans/pkg/brew/markdown/) - Shares av.db curated category or tags: cli, conversion, developer-tools, html, markdown.
- [vilistextum](https://www.automicvault.com/zh-hans/pkg/brew/vilistextum/) - Shares av.db curated category or tags: cli, conversion, developer-tools, html, markup.
- [discount](https://www.automicvault.com/zh-hans/pkg/brew/discount/) - Shares av.db curated category or tags: cli, developer-tools, html, markdown, markup.
- [htmldoc](https://www.automicvault.com/zh-hans/pkg/brew/htmldoc/) - Shares av.db curated category or tags: cli, conversion, converter, developer-tools, html.
- [pandoc](https://www.automicvault.com/zh-hans/pkg/brew/pandoc/) - Shares av.db curated category or tags: cli, developer-tools, html, markdown, markup.
- [comrak](https://www.automicvault.com/zh-hans/pkg/brew/comrak/) - Shares av.db curated category or tags: cli, developer-tools, markdown, markup.
- [hoedown](https://www.automicvault.com/zh-hans/pkg/brew/hoedown/) - Shares av.db curated category or tags: cli, developer-tools, markdown, markup.

## Combined YAML source

View the package source record on GitHub. [combined/html2markdown.yml](https://github.com/automic-vault/db/blob/main/combined/html2markdown.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
