rmd_node_sections: Find the sections for each rmd object node

Description Usage Arguments Value

View source: R/rmd_node_sections.R

Description

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

Usage

1
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.


parsermd documentation built on May 20, 2021, 5:08 p.m.