ParserBundle

laika.api.bundle.ParserBundle
class ParserBundle(val blockParsers: Seq[BlockParserBuilder], val spanParsers: Seq[SpanParserBuilder], val syntaxHighlighters: Seq[SyntaxHighlighter], val markupParserHooks: Option[ParserHooks], val configProvider: Option[ConfigProvider], val templateParser: Option[Parser[TemplateRoot]], val styleSheetParser: Option[Parser[Set[StyleDeclaration]]])

Bundles a collection of all types of parsers used in a transformation.

The parsers for text markup and configuration headers are meant to complement base parsers defined by the host language. If they fail for a given input the built-in parsers will still be tried for the same block, span or configuration header respectively.

The parsers for stylesheets and templates on the other hand are meant to overwrite any previously installed parsers.

Value parameters

blockParsers

parsers for block elements in text markup, complementing the parsers of the host language

configProvider

parser for configuration headers in text markup and template documents and configuration documents

markupParserHooks

hooks for markup parsers to control aspects beyond the individual span and block parsers

spanParsers

parsers for span elements in text markup, complementing the parsers of the host language

styleSheetParser

parser for CSS documents

syntaxHighlighters

parsers for syntax highlighting of code blocks

templateParser

parser for template documents

Attributes

Source
ParserBundle.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Merges this instance with the specified base.

Merges this instance with the specified base. Collections of parsers will be merged. Optional parsers in this instance will overwrite optional parsers in the base (if defined), with the base only serving as a fallback.

Attributes

Source
ParserBundle.scala

Concrete fields

Attributes

Source
ParserBundle.scala

Attributes

Source
ParserBundle.scala

Attributes

Source
ParserBundle.scala

Attributes

Source
ParserBundle.scala

Attributes

Source
ParserBundle.scala

Attributes

Source
ParserBundle.scala