rmd_node_sections: Find the sections for each rmd object node

View source: R/rmd_node_sections.R

rmd_node_sectionsR Documentation

Find the sections for each rmd object node

Description

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.


parsermd documentation built on May 29, 2024, 6:39 a.m.