Function: $createDirectiveNode

$createDirectiveNode(mdastNode, key?): DirectiveNode

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

Parameters

NameType
mdastNodeDirectives
key?string

Returns

DirectiveNode