# Install markdown-toc with Homebrew, Nix

Generate a markdown TOC (table of contents) with Remarkable. Version 1.2.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:markdown-toc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/markdown-toc>
- **Version:** 1.2.0
- **Source summary:** Generate a markdown TOC (table of contents) with Remarkable
- **Homepage:** <https://github.com/jonschlinkert/markdown-toc>
- **Repository:** <https://github.com/jonschlinkert/markdown-toc>
- **Upstream docs:** <https://github.com/jonschlinkert/markdown-toc#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- markdown-toc (cli)
- markdown-toc (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.2.0
- Local data: ok
- Upstream repository: https://github.com/jonschlinkert/markdown-toc
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [mark](https://www.automicvault.com/pkg/brew/mark/) - Shares av.db curated category or tags: cli, documentation, markdown, productivity.
- [asciidoc](https://www.automicvault.com/pkg/brew/asciidoc/) - Shares av.db curated category or tags: cli, documentation, productivity.
- [ekphos](https://www.automicvault.com/pkg/brew/ekphos/) - Shares av.db curated category or tags: cli, markdown, productivity.
- [marp-cli](https://www.automicvault.com/pkg/brew/marp-cli/) - Shares av.db curated category or tags: cli, markdown, productivity.
- [treemd](https://www.automicvault.com/pkg/brew/treemd/) - Shares av.db curated category or tags: cli, markdown, productivity.
- [papeer](https://www.automicvault.com/pkg/brew/papeer/) - Shares av.db curated category or tags: cli, markdown, productivity, remarkable.
- [backlog-md](https://www.automicvault.com/pkg/brew/backlog-md/) - Shares av.db curated category or tags: cli, markdown, productivity.
- [bulletty](https://www.automicvault.com/pkg/brew/bulletty/) - Shares av.db curated category or tags: cli, markdown, productivity.
- [markdown-toc](https://www.automicvault.com/pkg/npm/markdown-toc/) - Same normalized package name appears in another local ecosystem. Shared terms: contents, documentation, generate, markdown, markdown-toc.
- [github-markdown-toc](https://www.automicvault.com/pkg/brew/github-markdown-toc/) - Both packages work with overlapping file formats or content types. Shared terms: cli, contents, documentation, markdown, table.
- [markdown-toc](https://www.automicvault.com/pkg/npm/markdown-toc/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## Sources

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