[teachable] Extract chapter metadata (closes #24421)