Skip to main content

extract_toc

Function extract_toc 

Source
pub fn extract_toc(node: &Node<'_>, options: &ExtractToc) -> Value
Expand description

The headings of a tree as @stefanprobst/rehype-extract-toc nests them: each {depth, value, id?, children?}, under the closest heading of a lower rank before it.