Skip to main content

Module parser

Module parser 

Source
Expand description

Input parsers for reading documents into core structures.

This module is the input adapter in the hexagonal architecture. It reads various formats and fills core structures (Item, Relationship, etc.).

Use InputFormat with parse_metadata or [parse_document] to parse content without depending on format-specific functions.

Enums§

InputFormat
Supported input formats for document parsing.

Functions§

extract_name_from_content
Extracts a name from a markdown file’s first heading.
has_frontmatter
Checks if content has frontmatter (starts with ---).
parse_metadata
Parses content and extracts an Item.
update_frontmatter
Updates the YAML frontmatter in content while preserving the body (FR-064).