ParserBuilder

class ParserBuilder(format: MarkupFormat, val config: OperationConfig) extends ParserBuilderOps

Builder API for Parser instances.

Allows to add ExtensionBundles and the strict and withRawContent flags.

class Object
trait Matchable
class Any

Type members

Value members

Concrete methods

Applies all configuration specified with this builder and returns a new MarkupParser instance.

Applies all configuration specified with this builder and returns a new MarkupParser instance.

Inherited methods

Specifies the filter to apply to runtime messages that should cause a transformation to fail.

Specifies the filter to apply to runtime messages that should cause a transformation to fail.

The default is to fail transformations on messages of level Error or higher.

Inherited from:
ParserBuilderOps

Turns strict mode on for the target parser, switching off any features not part of the original markup syntax. This includes the registration of markup directives (custom tags) as well as configuration sections at the start of the document.

Turns strict mode on for the target parser, switching off any features not part of the original markup syntax. This includes the registration of markup directives (custom tags) as well as configuration sections at the start of the document.

Inherited from:
ParserBuilderOps

Returns a new instance with the specified extension bundles installed. Features in the new bundles may override features in already installed bundles.

Returns a new instance with the specified extension bundles installed. Features in the new bundles may override features in already installed bundles.

Bundles are usually provided by libraries (by Laika itself or a 3rd-party extension library) or as re-usable building blocks by application code.

Inherited from:
CommonBuilderOps
def withConfigValue[T : ConfigEncoder](key: Key, value: T): ThisType

Returns a new instance with the specified configuration value added.

Returns a new instance with the specified configuration value added.

The specified value with have higher precedence than any value with the same key registered by extension bundles, but lower precedence than any value with the same key specified in a configuration file for a directory or a configuration header in a markup document.

Inherited from:
ParserBuilderOps
def withConfigValue[T : ConfigEncoder](key: String, value: T): ThisType

Returns a new instance with the specified configuration value added.

Returns a new instance with the specified configuration value added.

The specified value with have higher precedence than any value with the same key registered by extension bundles, but lower precedence than any value with the same key specified in a configuration file for a directory or a configuration header in a markup document.

Inherited from:
ParserBuilderOps
def withConfigValue[T : DefaultKey](value: T): ThisType

Returns a new instance with the specified configuration value added.

Returns a new instance with the specified configuration value added.

The specified value with have higher precedence than any value with the same key registered by extension bundles, but lower precedence than any value with the same key specified in a configuration file for a directory or a configuration header in a markup document.

Inherited from:
ParserBuilderOps

Enables all extensions that process raw content embedded into the host markup language. These are disabled by default as Laika is designed to render to multiple output formats from a single input document. With raw content embedded the markup document is tied to a specific output format.

Enables all extensions that process raw content embedded into the host markup language. These are disabled by default as Laika is designed to render to multiple output formats from a single input document. With raw content embedded the markup document is tied to a specific output format.

Inherited from:
ParserBuilderOps