Crst::Directive
Inherits Crst::Node < Reference < Object
Represents a directive block
Directives are special RST constructs starting with .. directive::.
They provide extensible syntax for special document elements like
code blocks, admonitions, images, and custom directives.
Example:
# RST code-block directive:
# .. code-block:: crystal
#
# puts "Hello"
directive = Crst::Directive.new("code-block", ["crystal"])
directive.options["linenos"] = "true"
NOTE: See the RST specification for the full list of standard directives.
Constructors
new(name : String, arguments : Array(String) = [] of String, options : Hash(String, String) = {} of String => String, children : Array(Crst::Node) = [] of Node)
Source