# markdown-toc を Homebrew, Nix でインストール

markdown-toc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:markdown-toc
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install markdown-toc
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#markdown-toc
```

  証拠: nixpkgs package indexes: pkgs/by-name/ma/markdown-toc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:markdown-toc
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.2.0
- **ソース概要:** Generate a markdown TOC (table of contents) with Remarkable
- **ホームページ:** <https://github.com/jonschlinkert/markdown-toc>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- markdown-toc (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.2.0
## プロジェクトの歴史と使われ方

markdown-toc is a Node.js API and CLI for generating and inserting tables of contents in Markdown files.

### プロジェクトの歴史

The GitHub repository was created in 2013. The README describes markdown-toc as a tool that uses Remarkable to parse Markdown and can be used from the command line or as an API/plugin.

The project belongs to the ecosystem of README automation tools around Jon Schlinkert's packages, Verb, and Assemble-style documentation workflows. Its own README is generated with Verb using markdown-toc, making the package self-demonstrating.

### 採用の歴史

The official repository description says the package is used by many well-known projects and thousands of other projects. The README displays npm version/download badges and documents npm installation, while supplied package facts show Homebrew and Nix packaging as well.

### 使われ方

The common CLI workflow is to install markdown-toc globally, add a hidden <!-- toc --> marker to a README, and run markdown-toc -i README.md to inject or update the generated TOC. Without in-place mode, the CLI can print a TOC to standard output or JSON.

As an API, markdown-toc returns rendered content plus token data so build scripts can render a custom table of contents. Options cover heading depth, bullet style, slugification, filtering, indentation, and whether to include the first H1.

### パッケージ好きにとっての重要性

markdown-toc is a classic small Unixy documentation helper: it reads Markdown, emits Markdown, and is easy to wire into README generation. Package maintainers care because it has a stable CLI surface and also doubles as a library for build-time documentation automation.

### タイムライン

- 2013: GitHub repository created.
- 2010s: README documents npm installation and CLI/API usage for README table-of-contents generation.
- 2026: Supplied package facts list Homebrew and Nix packaging.

### Related projects

- The README identifies Remarkable as the Markdown parser used by markdown-toc.
- The README notes it was generated with Verb and can be used as a Remarkable plugin.

### ソース

- <https://api.github.com/repos/jonschlinkert/markdown-toc>
- <https://github.com/jonschlinkert/markdown-toc>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - markdown-toc: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/markdown-toc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/markdown-toc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/markdown-toc.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
