Expand description
The metadata module contains functions for extracting and processing metadata.
Metadata extraction and processing module.
This module provides functionality for extracting metadata from various formats (YAML, TOML, JSON) and processing it into a standardized structure.
Structs§
- Metadata
- Represents metadata for a page or content item.
- Process
Options - Options for
process_metadata_with.
Enums§
- Front
Matter Format - Which front-matter shape a document carries, and where its body starts.
Functions§
- detect_
front_ matter - Locates the front-matter block without parsing it.
- extract_
metadata - Extracts metadata from the content string.
- extract_
metadata_ with_ body - Extracts metadata and returns the document body alongside it.
- extract_
typed - Deserialises the front matter into a typed value.
- process_
metadata - Processes the extracted metadata.
- process_
metadata_ with process_metadatawith caller-chosen required fields and derivations.