Creates a new directive with the specified name and implementation.
Creates a new directive with the specified name and implementation.
The DirectivePart
can be created by using the methods of the Parts
object.
the name the directive can be used with in reStructuredText markup
the implementation of the directive that can be created by using the combinators of the Parts
object
a new directive that can be registered with the reStructuredText parser
Creates a new directive with the specified name and implementation.
Creates a new directive with the specified name and implementation.
The DirectivePart
can be created by using the methods of the Parts
object. In contrast to the apply
function, this function allows to
depend on the standard block and span parsers. This is necessary if
the directive does both, require a custom parser for arguments or body
and allow for nested directives in those parsers.
the name the directive can be used with in reStructuredText markup
a function returning the implementation of the directive that can be created by using the combinators of the Parts
object
a new directive that can be registered with the reStructuredText parser
API entry point for setting up a span directive that can be used in substitution definitions.