Skip to main content

get_learning_objectives

Function get_learning_objectives 

Source
pub fn get_learning_objectives(blocks: &[GutenbergBlock]) -> Option<String>
Expand description

The learning objectives declared anywhere in blocks, one per line, or None when the page declares none.

Objectives are authored as list items inside a learning-objectives block, so the lines are the objectives themselves. Whether they cover the page, the chapter or the course depends on which page the blocks came from, which is the caller’s to know.