ToolPal

Markdown 目录生成器

从Markdown标题自动生成目录。支持GitHub、GitLab链接样式,自定义标题级别范围,一键插入文档。

找到 0 个标题

使用方法

从Markdown标题自动生成目录。支持GitHub、GitLab链接样式,自定义标题级别范围,一键插入文档。

  1. 1Paste your Markdown document into the input area, or click 'Load sample' to try it.
  2. 2Choose a link style: GitHub (most common), GitLab, or Plain Text (no links).
  3. 3Set the heading range — e.g. H2 to H4 — to exclude the document title and deep sub-headings.
  4. 4The table of contents generates instantly as you type or adjust settings.
  5. 5Click 'Copy TOC' to copy it, or 'Insert into document' to prepend it automatically.

主要功能

  • GitHub and GitLab anchor link styles supported
  • Customizable heading range (H1–H6)
  • Automatically ignores headings inside fenced code blocks
  • One-click insert into your Markdown document
  • Live preview of the generated heading structure

常见问题

了解更多