Skip to main content

parse

Function parse 

Source
pub fn parse(body: &str) -> Vec<Item>
Expand description

Every task list item in the body, in order.

Deliberately dull about what it will not treat as an item: anything the reader of the issue does not see as a checkbox is not one. That is a fenced block, an indented code block, an HTML comment, anything inside a block level HTML tag, and anything that is not a task list line. Nested items are ordinary items, since every edit here is line local.