Registry / utility / yaml-front-matter

yaml-front-matter

JSON →
library0.1.0rscratesunverified

YAML Front Matter (YFM) parser for Markdown files, extracting metadata from document headers.

# Cargo.toml [dependencies] yaml-front-matter = "0.1.0"
INSTALL
IMPORT
SIG · YAML-FRONT-MATTER
Y
yaml-front-matter
utilityrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
use yaml_front_matter::parse;

Parses YAML front matter from a Markdown string.

use yaml_front_matter::parse; fn main() { let content = "---\ntitle: Hello\n---\n# Markdown"; let (front_matter, body) = parse(content).unwrap(); println!("Title: {:?}", front_matter["title"]); println!("Body: {}", body); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
yaml-front-matter — cargo add yaml-front-matter · libregistry