UtilitySansar
Text

Markdown TOC Generator

Generate a clean, linked table of contents from any Markdown document. Pick the heading levels you want included, choose ordered or bullet lists, and copy a ready-to-paste TOC for your README, docs, or blog post.

工具摘要

此工具接收结构化输入,在浏览器中返回确定性输出,无需上传到服务器。

工具名称
Markdown TOC Generator
输入意图
提供需要转换、校验或分析的原始内容。
输出意图
获得可直接复制、复用或排错的规范化输出。
示例输入
# Guide ## Install ## Configure ### Environment ### Secrets
示例输出
- [Install](#install) - [Configure](#configure) - [Environment](#environment) - [Secrets](#secrets)
Recent inputs0

Your last 5 inputs will appear here.

9 headings detected
- [Installation](#installation)
  - [macOS](#macos)
  - [Linux](#linux)
- [Configuration](#configuration)
- [Usage](#usage)
  - [Basic example](#basic-example)
  - [Advanced example](#advanced-example)
- [Troubleshooting](#troubleshooting)

工具介绍

Generate a clean, linked table of contents from any Markdown document. Pick the heading levels you want included, choose ordered or bullet lists, and copy a ready-to-paste TOC for your README, docs, or blog post.

工具概览

Long Markdown files get easier to navigate when they start with a TOC. This tool parses your document, skips code fences, deduplicates anchor slugs the same way GitHub does, and builds a nested list that mirrors your heading hierarchy. Everything runs in the browser — your draft never leaves your tab.

使用场景

  • Add navigation to a long README on GitHub
  • Build a docs landing page with deep-linked sections
  • Insert a sticky TOC into a Markdown blog post
  • Audit heading structure for a documentation site

输入/输出示例

H2-H3 range, bullet style, anchor links enabled.
输入意图
# Guide
## Install
## Configure
### Environment
### Secrets
输出意图
- [Install](#install)
- [Configure](#configure)
  - [Environment](#environment)
  - [Secrets](#secrets)

常见问题

Are anchor slugs compatible with GitHub?+
Yes. The slug algorithm lowercases text, replaces spaces with dashes, strips Markdown emphasis characters, and de-duplicates repeated headings — matching GitHub's behavior.
Does it ignore code blocks?+
Yes. Fenced code blocks are skipped so `# comments` inside code don't become TOC entries.
Can I generate an ordered (numbered) list?+
Yes. Toggle the ordered option to emit 1. style markers instead of bullets.
Is my Markdown sent anywhere?+
No. Parsing happens entirely in your browser.

探索更多工具

在下方的 Text 分类中发现相关工具。

浏览全部 Text

相关工具

精选可能对你有用的实用工具