pub fn section_candidates<'a>(doc: &'a Doc, slug: &str) -> Vec<&'a Example>Expand description
The candidates that make up a section: those whose heading chain contains the slug. A whole-file reference (empty slug) is every candidate in the document. Section membership follows the document outline exactly — a heading’s section runs until the next heading of the same or higher level, which is precisely the range over which it stays on the scope stack.