Skip to main content

parse_entity_file_body

Function parse_entity_file_body 

Source
pub fn parse_entity_file_body(
    name: &str,
    body: &str,
    label: Label,
    id: Option<String>,
    title_line: usize,
    errors: &mut Vec<ParseError>,
) -> Entity
Expand description

Parse a single entity from a standalone entity file body. The body is the text after the H1 heading (bullet fields, no H3 headings). label is determined by the file’s directory (people/ or organizations/). id comes from the front matter (may be None).