HTML character data (plain text).

interface Text {
    data?: TextData;
    position?: Position$1;
    type: "text";
    value: string;
}

Hierarchy (view full)

Properties

data?: TextData

Data associated with the text.

position?: Position$1

Position of a node in a source document.

Nodes that are generated (not in the original source document) must not have a position.

type: "text"

Node type of HTML character data (plain text) in hast.

value: string

Plain-text value.