Skip to main content

parse_items

Function parse_items 

Source
pub fn parse_items(body: &str) -> (String, Vec<PendingItem>, String)
Expand description

Parse the pending component body into (prelude, items, postlude).

  • Prelude: leading non-list lines (whitespace, non tracked parent lines).
  • Items: parsed tracked entries (- ... / 1. ..., legacy or fully-migrated).
  • Postlude: trailing non-list lines after the last item.

Interleaved non-item lines between backlog entries are intentionally not surfaced here. Mutation helpers preserve those lines through PendingLayout; parse_items remains the lossy item-only view used by reorder/diff checks.