Skip to main content

Module parse

Module parse 

Source
Expand description

Parser for the logbook markdown format.

Entries are blocks starting with ## headers; lines before the first header (e.g. the file header written by init) are treated as preamble and discarded. Within an entry, only two pieces of structure are extracted: the date in the heading (if it’s shaped like YYYY-MM-DD) and the comma-separated values of the first **tags:** line. The full block is preserved verbatim in Entry::raw so subcommands like list and search can echo the original markdown back to stdout without re-rendering.

Structs§

Entry
A single parsed entry from a logbook file.

Functions§

parse_entries
Parse the full text of a logbook file into entries, in document order.