Skip to contents

Uses the section headings of an rmd object to identify the hierarchical structure of the document.

Usage

rmd_node_sections(x, levels = 1:6, drop_na = FALSE)

Arguments

x

An rmd object, e.g. rmd_ast or rmd_tibble.

levels

Limit which section heading levels to return.

drop_na

Should NA sections be dropped.

Value

A list of section names for each node.