Loading…
读取 Markdown 中的 ##/###/#### 标题,生成目录列表。
- [Introduction](#introduction)
- [Background](#background)
- [Goals](#goals)
- [Usage](#usage)
- [Installation](#installation)
- [Requirements](#requirements)
- [Examples](#examples)
- [Conclusion](#conclusion)H1(#)通常作为页面标题,因此不包含在目录中,仅提取 H2、H3 和 H4。锚点采用 GitHub 风格(小写、空格变连字符),并忽略代码围栏内的标题。
工具会提取 H2(##)、H3(###)和 H4(####)标题。H1(#)通常作为页面标题使用,因此不会被列入目录。
会。``` 或 ~~~ 围栏代码块内部的行即使看起来像标题也会被跳过,因此你的示例 Markdown 不会污染目录。
锚点遵循 GitHub 风格:标题文本转换为小写、空白替换为连字符,并去除标点符号。中文、日文、韩文等 Unicode 字符会原样保留。