package directive
- Alphabetic
- Public
- All
Type Members
-
sealed abstract
class
AttributeKey extends AnyRef
The id for a directive part.
-
trait
BuilderContext[E <: Element] extends AnyRef
Provides the basic building blocks for Laika's Directive API.
Provides the basic building blocks for Laika's Directive API. This trait is not used directly, but instead its three sub-traits
Blocks
,Spans
andTemplates
, which represent the concrete implementations for the three directive types. -
trait
DirectiveRegistry extends ExtensionBundle
Registry for custom directives.
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
-
class
DirectiveSupport extends ExtensionBundle
Internal API that processes all directives defined by one or more DirectiveRegistries.
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.
Value Members
- object AttributeKey
-
object
Blocks extends BuilderContext[Block]
The API for declaring directives that can be used as block elements in markup documents.
-
object
DirectiveSupport extends DirectiveSupport
Empty default instance without any directives installed.
-
object
Links
The API for declaring directives that can be used in links.
-
object
Spans extends BuilderContext[Span]
The API for declaring directives that can be used as inline elements in markup documents.
-
object
Templates extends BuilderContext[TemplateSpan]
The API for declaring directives that can be used in templates.