fn flush_section( sections: &mut Vec<Value>, current: &mut Option<(String, Vec<String>)>, level: usize, )
Flushes a section to the sections list.