Document fragment or a whole document.

Should be used as the root of a tree and must not be used as a child.

Hierarchy (view full)

Properties

children: RootContent[]

List of children.

data?: RootData

Data associated with the mdast root.

Position of a node in a source document.

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

type: "root"

Node type of mdast root.