Creates a new link directive with the specified name and implementation.
Creates a new link directive with the specified name and implementation.
The specified function receives the string used in the directive instance in text markup. When the result of the function call is a Left, the directive will produce an invalid AST element with the string as the error message.