ParserBuilder
Builder API for Parser instances.
Allows to add ExtensionBundles and the strict
and withRawContent
flags.
Type members
Types
Value members
Concrete methods
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
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
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
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