laika.directive

Type members

Classlikes

sealed abstract class AttributeKey

The id for a directive part.

The id for a directive part.

Companion:
object
Companion:
class
object Blocks extends BuilderContext[Block]

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
class DirectiveSupport(blockDirectives: Seq[Directive], spanDirectives: Seq[Directive], templateDirectives: Seq[Directive], linkDirectives: Seq[Directive], strictMode: Boolean) extends ExtensionBundle

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
object Links

The API for declaring directives that can be used in 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.

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.