Function: $createDirectiveNode()

$createDirectiveNode(mdastNode, key?): DirectiveNode

Creates an DirectiveNode. Use this instead of the constructor to follow the Lexical conventions.

Parameters

ParameterType
mdastNodeDirectives
key?string

Returns

DirectiveNode