Function: $createDirectiveNode()
$createDirectiveNode(
mdastNode
,key
?):DirectiveNode
Creates an DirectiveNode. Use this instead of the constructor to follow the Lexical conventions.
Parameters
Parameter | Type |
---|---|
mdastNode | Directives |
key ? | string |