Skip to main content

front_matter_values

Function front_matter_values 

Source
pub fn front_matter_values(text: &str, key: &str) -> Vec<String>
Expand description

Every value a front-matter key carries, in the order the keys appear.

The scan is the leading --- block alone, so a state: line in the prose below it is text about the record rather than the record’s own field. A key stated twice yields two entries, which is what makes “exactly one” decidable.