Trevixal API
    Preparing search index...

    Interface HTMLSpec

    Declarative HTML output for a node or mark, consumed by the HTML serializer.

    interface HTMLSpec {
        attrs?: Readonly<Record<string, string>>;
        childTag?: string;
        innerHTML?: string;
        isVoid?: boolean;
        tag: string;
        text?: string;
    }
    Index
    attrs?: Readonly<Record<string, string>>
    childTag?: string

    Optional inner wrapper tag (e.g. the code in pre > code).

    innerHTML?: string

    Trusted markup rendered inside an atom in place of text, a formula's MathML, a link card's title and description. It is inserted verbatim by both the serializer and the DOM renderer, so the spec author builds it and must escape every dynamic value it carries.

    isVoid?: boolean

    Void elements (br, hr, img) render without children or a closing tag.

    tag: string
    text?: string

    Literal text content for atom nodes (a badge's label, a footnote marker).