HTML comment.

interface Comment {
    data?: CommentData;
    position?: Position$1;
    type: "comment";
    value: string;
}

Hierarchy (view full)

Properties

Data associated with the comment.

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: "comment"

Node type of HTML comments in hast.

value: string

Plain-text value.