Expand description
Per-extension loaders: bytes -> Loaded { data, content } for schema
validation. MatterLoader runs the full mdx compile; YamlLoader /
JsonLoader parse data files directly.
Structs§
- Json
Loader .jsonloader. Straightserde_json::from_str.- Loaded
- One loaded source file: schema-validated
data(frontmatter for mdx, the whole doc for yaml/json) plus the originalcontentstring. - Loader
Registry - Ordered loader chain; first match wins. Defaults: Matter, Yaml, Json.
- Matter
Loader .md/.mdx/.markdownloader. Runs the full compile and stashes theCompileOutputunderdata.__compiledso the schema can refine it (e.g.transform: ctx => ctx.html).- Yaml
Loader .yaml/.ymlloader. Parses toserde_yaml::Value, then converts toserde_json::Valuefor schema interop.
Traits§
- Loader
- Pluggable per-extension loader:
testclaims a path,loadparses it.