Expand description
Parsing of the markdown body: title, sections, and checklist items.
Structs§
Functions§
- apply_
section_ edits - Splice
new_textinto sections addressed by index (fromsection_spans), replacing each section’s trimmed content while preserving the heading line and the surrounding blank lines byte-for-byte. Edits apply back-to-front so byte offsets stay valid across multiple edits to one body. - checklist_
items - Top-level checkbox items under the named
## <header>section. Used for a feature’s## Test planand a work item’s## Tasks. - has_
section - Whether the body contains a
## <header>section heading. - section
- Text of the
## <header>section, up to the next##heading (or EOF). - section_
spans - The byte range of each
##section’s content (the text under the heading, up to the next##), paired with its heading, in document order — the preamble (empty heading) first unless it is blank. Theblocksprojection’sseqindexes into this, so it is the addressing scheme for section edits. - sections
- Split the body into
##sections in document order as(heading, content)pairs —contentis the text under each heading up to the next##. The first pair has an empty heading and holds the preamble (title + intro) before the first##. Followssection’s##-delimited convention. - title
- First
# Headingline, or"".