Skip to content

DirectiveNode Type documentation

AST node created by remark-directive .
Properties
Attributes declared on the directive.
attributes: Record<string, (string | undefined)>
List of children.
children: RootContent[] from Parent.children
Info from the ecosystem.
data?: Data from Parent.data
The directive name without its leading colons.
name: string
Position of a node in a source document.

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

position?: Position from Parent.position
Node type.
type: ("containerDirective" | "leafDirective" | "textDirective")

Types Documentation

import
imported from @types/mdast
imported from @types/mdast
import
imported from @types/mdast
imported from @types/unist

Except where otherwise noted, content on this site is licensed under MIT License.