Trevixal API
    Preparing search index...

    Interface NodeSpec

    interface NodeSpec {
        atom?: boolean;
        attrs?: Readonly<Record<string, { default?: unknown }>>;
        content?: string;
        group?: string;
        inline?: boolean;
        marks?: string;
        parseHTML?: readonly ParseRule[];
        preserveWhitespace?: boolean;
        toHTML?: (node: EditorNode) => HTMLSpec;
    }
    Index
    atom?: boolean
    attrs?: Readonly<Record<string, { default?: unknown }>>
    content?: string

    Content expression, e.g. "block+" or "inline*". Omit for leaf nodes.

    group?: string

    Space-separated group names this node belongs to (e.g. "block").

    inline?: boolean
    marks?: string

    Marks allowed on inline content: "_" for all (default for textblocks), "" for none, or space-separated mark names.

    parseHTML?: readonly ParseRule[]
    preserveWhitespace?: boolean

    Preserve whitespace verbatim when parsing into this node (code blocks).

    toHTML?: (node: EditorNode) => HTMLSpec