String Utilities 工具已更新 2 个月前

Markdown Add Heading Numbers

Automatically add hierarchical numbering to Markdown headings. Supports multi-level numbering like 1, 1.1, 1.1.1 and skips fenced code blocks.

永久免费 易于使用 立竿见影的效果 私密且安全

使用 Markdown Add Heading Numbers

Markdown 添加标题编号

在 Markdown ATX 标题中添加整洁的分层编号,同时跳过带围栏的代码块。

输入 Markdown

粘贴带标题的 Markdown 内容
支持 #######。现有的标题编号将被替换。带围栏的代码块将被跳过。
尚未编号
编号状态
0 编号
标题编号

输出 Markdown

带编号标题的 Markdown
编号技巧
编号会根据标题级别自动重置。例如:# 1## 1.1### 1.1.1

阅读内容

了解该工具的工作原理以及何时使用它。

The Markdown Add Heading Numbers tool automatically inserts hierarchical numbering into all ATX headings (# to ######) in your Markdown document, while leaving fenced code blocks untouched. Existing heading numbers are replaced with fresh counters.

Why Use This Tool?

Numbered headings improve document structure and readability, especially in technical documentation, tutorials, and long-form content where cross-referencing sections is common. Hand-numbering nested headings is tedious and breaks whenever you reorder sections.

How It Works

  • Paste your Markdown content into the input editor, or use the Paste button to pull from clipboard.
  • Click Add Numbers to scan all ATX headings and insert hierarchical numbers.
  • The tool counts detected headings, skips fenced code blocks, and replaces any existing numbers.
  • Copy the numbered output from the output panel, or download it as a .md file.

Key Features

  • Hierarchical numbering (1, 1.1, 1.1.1) for H1 through H6
  • Skips fenced code blocks (``` and ~~~) so sample code stays untouched
  • Replaces any existing heading numbers with fresh counters
  • Live counters for detected headings and numbered headings
  • Copy input, copy output, paste, clear, and download as .md

评论 (0)

用于用户讨论、边界情况及后续建议。
发表评论
您的评论提交后将公开展示。
目前尚无评论。快来发表第一条评论吧!
请告诉我们!
报告此工具的问题

请描述您遇到的问题,以便我们进行调查并改进该工具。

什么最有帮助
请提供输入内容、预期结果、实际结果、浏览器/设备信息,如有帮助,请附上截图。
“截图”按钮会截取浏览器中的页面,并将生成的图片作为附件添加到此表单中。
整页截图
通过 newisty 在您的浏览器中捕获。
尚未截取屏幕截图。
工具 报告