@newspapper/core
    Preparing search index...

    Interface WzdElement

    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 WzdElement {
        kind: "element";
        type: string;
        props: Record<string, string>;
        attributes: WzdAttribute[];
        children: WzdNode[];
        selfClosing: boolean;
        blankLineBefore: boolean;
        openTagLoc: WzdLoc;
        closeTagLoc: WzdLoc | null;
        nameLoc: WzdLoc;
        loc: WzdLoc;
    }
    Index
    kind: "element"
    type: string

    Tag name as written. Lowercase = document structure, Capitalized = component.

    props: Record<string, string>

    Flattened name -> value, first occurrence wins. Insertion order = source order.

    attributes: WzdAttribute[]

    Every attribute as written, including duplicates, with ranges.

    children: WzdNode[]
    selfClosing: boolean
    blankLineBefore: boolean

    True when a blank line separated this node from its previous sibling.

    openTagLoc: WzdLoc

    <Name ...> or <Name ... />.

    closeTagLoc: WzdLoc | null

    </Name>, or null when self-closing or never closed.

    nameLoc: WzdLoc

    The tag name inside the opening tag.

    loc: WzdLoc

    Opening tag through closing tag.