pub fn from_description(description: &str) -> Result<Vec<Chapter>, String>Expand description
Reads chapters from episode description (show notes).
ยงExample:
let description = r#"
In this episode, we explore a hot new trend in fitness: "The Movement"!
00:00 - The Movement
05:04 - Baboons
09:58 - Steve Jobs
"#;
let chapters = chapters::from_description(description).expect("Failed to parse chapters");
assert_eq!(chapters.len(), 3);
assert_eq!(chapters[1].title, Some(String::from("Baboons")));