Skip to main content

fm_to_json

Function fm_to_json 

Source
pub fn fm_to_json(fm: &Frontmatter) -> Value
Expand description

Render a Frontmatter as a JSON object — only fields that are present appear; unknown keys from extra are included verbatim. Shared so ct-okf and the OKF-aware tools emit metadata the same way.