1. simple-page-toc

生成本页目录 需要在文章中插入标签,支持1-3级目录 页面顶端生成。另外 GitBook 在处理重复的标题时有些问题,所以尽量不适用重复的标题。

{
    "plugins" : [
        "simple-page-toc"
    ],
    "pluginsConfig": {
        "simple-page-toc": {
            "maxDepth": 3,
            "skipFirstH1": true
        }
    }
}

参数 说明 "maxDepth": 3 使用深度最多为maxdepth的标题。 "skipFirstH1": true 排除文件中的第一个h1级标题。 使用方法: 在需要生成目录的地方用下面的标签括起来,全文都生成的话就在首尾添加

内容部分
Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2021-08-22 15:19:58

results matching ""

    No results matching ""