Skip to main content

parse_timeline

Function parse_timeline 

Source
pub fn parse_timeline(
    body: &str,
    section_start_line: usize,
    event_names: &HashSet<&str>,
    errors: &mut Vec<ParseError>,
) -> Vec<Rel>
Expand description

Parse the ## Timeline section body into preceded_by relationships.

Format:

- Event A -> Event B
  id: 01ABC...
- Event B -> Event C
  id: 01DEF...

Each bullet is a single edge. The id: line is optional on first build (will be generated and written back).