Skip to main content

Module json

Module json 

Source
Expand description

Wire format for the compiled site asset (note_XXX.json).

SiteAsset is the top-level output of crate::parse_document. It contains:

  • schema — integer version so renderers can detect breaking changes.
  • meta — parsed YAML frontmatter as a JSON value tree (native only).
  • ast — array of MarkPlus block nodes (see crate::ast).

Structs§

SiteAsset
The JSON asset written to dist/static_api/note_XXX.json.

Functions§

parse_frontmatter
Parse YAML frontmatter text into a JSON value tree (native targets only).