Extracts and parses YAML or TOML front matter from text documents. Front matter is structured metadata at the beginning of a document, delimited by fences.
Standard YAML (--- delimiters)
Standard TOML (+++ delimiters)
Comment-wrapped formats for R/Python files (# and #' prefixes)
PEP 723 Python inline script metadata
parse_front_matter(): Parse front matter from a string
read_front_matter(): Parse front matter from a file
Uses C++11 for fast, single-pass parsing with minimal memory overhead. Designed for high throughput processing of many documents.
Maintainer: Garrick Aden-Buie garrick@posit.co (ORCID)
Other contributors:
Posit Software, PBC (ROR) [copyright holder, funder]