@newspapper/core
    Preparing search index...

    Interface WzdDocument

    Newspapper Wizard (.wzd) — the language a post is written in.

    text -> parse -> WzdDocument -> format -> text, with lint over the tree. The catalogue is data; the compiler and the editor both read it rather than restating it.

    interface WzdDocument {
        kind: "document";
        head: Record<string, string>;
        body: WzdNode[];
        children: WzdNode[];
        headElement: WzdElement | null;
        bodyElement: WzdElement | null;
        loc: WzdLoc;
    }
    Index
    kind: "document"
    head: Record<string, string>

    <head> metadata as field -> text, e.g. { title: 'Budget', date: '2026-08-27' }.

    body: WzdNode[]

    Children of <body>; empty when there is no <body>.

    children: WzdNode[]

    Every top-level node in source order, including <head>, <body> and strays.

    headElement: WzdElement | null
    bodyElement: WzdElement | null
    loc: WzdLoc