Module parser

Module parser 

Source
Expand description

Markdown and metadata parsing.

Structs§

ExtractedFrontmatter
Represents extracted frontmatter content.
ParsedDocument
Represents a parsed document with its item and body content.
RawFrontmatter
Raw frontmatter structure for deserialization.

Functions§

extract_body
Extracts just the body content after the frontmatter (FR-064).
extract_frontmatter
Extracts YAML frontmatter from Markdown content.
has_frontmatter
Checks if content has frontmatter (starts with ---).
parse_document
Parses a Markdown file and returns the item and body.
parse_markdown_file
Parses a Markdown file and extracts the item.
update_frontmatter
Updates the YAML frontmatter in content while preserving the body (FR-064).