Skip to main content

Module loaders

Module loaders 

Source
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§

JsonLoader
Loaded
data is frontmatter for mdx, the whole doc for yaml/json.
LoaderRegistry
Ordered loader chain; first match wins.
MatterLoader
.md / .mdx / .markdown. Stashes CompileOutput under data.__compiled so the schema can refine it (e.g. transform: ctx => ctx.html).
YamlLoader

Traits§

Loader