Expand description
This module provides functionality for extracting frontmatter from content.
It includes functions to extract frontmatter in various formats (YAML, TOML, JSON) from a given string content, as well as utilities to detect the format of the frontmatter.
Functionsยง
- detect_
format - Detects the format of the extracted frontmatter.
- extract_
delimited_ frontmatter - Extracts frontmatter enclosed by the given start and end delimiters.
- extract_
json_ frontmatter - Extracts JSON frontmatter from the content by detecting balanced curly braces (
{}). - extract_
raw_ frontmatter - Extracts raw frontmatter from the content, detecting YAML, TOML, or JSON formats.