laika.directive
Type members
Classlikes
The API for declaring directives that can be used as block elements in markup documents.
The API for declaring directives that can be used as block elements in markup documents.
Provides the basic building blocks for Laika's Directive API.
This trait is not used directly, but instead its three sub-traits Blocks
, Spans
and Templates
,
which represent the concrete implementations for the three directive types.
Provides the basic building blocks for Laika's Directive API.
This trait is not used directly, but instead its three sub-traits Blocks
, Spans
and Templates
,
which represent the concrete implementations for the three directive types.
Registry for custom directives. Application code can define any number of instances mixing in this trait and then pass them to Parse, Render or Transform operations:
Registry for custom directives. Application code can define any number of instances mixing in this trait and then pass them to Parse, Render or Transform operations:
object MyDirectives extends DirectiveRegistry {
val spanDirectives = Seq(...)
val blockDirectives = Seq(...)
val templateDirectives = Seq(...)
val linkDirectives = Seq(...)
}
object OtherDirectives extends DirectiveRegistry {
[...]
}
val transformer = Transformer
.from(Markdown)
.to(HTML)
.using(MyDirectives, OtherDirectives)
.build
Internal API that processes all directives defined by one or more DirectiveRegistries. This extension is installed by default, unless the transformation is run in strict mode.
Internal API that processes all directives defined by one or more DirectiveRegistries. This extension is installed by default, unless the transformation is run in strict mode.
- Companion:
- object
Empty default instance without any directives installed.
Empty default instance without any directives installed.
- Companion:
- class
The API for declaring directives that can be used in links.
The API for declaring directives that can be used in links.
The API for declaring directives that can be used as inline elements in markup documents.
The API for declaring directives that can be used as inline elements in markup documents.
The API for declaring directives that can be used in templates.
The API for declaring directives that can be used in templates.