fn chapter_page_segment(raw: &str, prefix: &str) -> Result<String, EditError>
A chapter page’s explicit path: its last segment alone, or the whole path under some /chapter-N.
/chapter-N