plugin to generate a table of contents (TOC)
exports
migrate: don’t use private APIsmdast-util-toc
, @types/mdast
, etc
migrate: update tooContents
headings by default
migrate: pass an options.heading
if you don’t want ittight: true
migrate: pass options.tight: true
if you don’t want itFull Changelog: https://github.com/remarkjs/remark-toc/compare/8.0.1...9.0.0
Full Changelog: https://github.com/remarkjs/remark-toc/compare/8.0.0...8.0.1
// From CommonJS
var remarkToc = require('remark-toc')
// To ESM
import remarkToc from 'remark-toc'
Learn more about ESM in this guide
mdast-util-toc
options in TypeScriptmdast-util-toc
optionsmdast-util-toc
(breaking, see [email protected]
)mdast-util-toc
(see [email protected]
)remark-slug
mdast-util-toc
remark-slug
remarkjs
See [email protected]
for more info.