我在README.md文件中使用[[toc]],它会自动在目录中显示2,3级(##,###) Headers . 如果我尝试根据文档在我的配置文件中更改此项
toc:{includeLevel:[1,2]},
它没有显示任何变化? VuePress有错误吗?
你需要传递这样的参数:
md.use(require(“markdown-it-table-of-contents”),{includeLevel:[1,2]});
1 回答
你需要传递这样的参数:
md.use(require(“markdown-it-table-of-contents”),{includeLevel:[1,2]});