Abstract mdast node.

This interface is supposed to be extended. If you can use Literal or Parent, you should. But for example in markdown, a thematic break (***) is neither literal nor parent, but still a node.

To register custom mdast nodes, add them to RootContentMap and other places where relevant (such as ElementContentMap).

For a union of all registered mdast nodes, see Nodes.

Hierarchy (view full)

Properties

Properties

data?: Data

Info from the ecosystem.

Position of a node in a source document.

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

type: string

Node type.