BlockParserBuilder

laika.api.bundle.BlockParserBuilder
See theBlockParserBuilder companion object

Builder API for block parsers.

Builds a span parser definition lazily by passing the recursive parsers of the host language.

This indirection is needed when supplying parser implementations as many parsers recursively parse child elements. A list parser for example needs to be able to detect any other block or span element within a list item. But since it has no way of knowing which extensions a user might have added to the host language, those parsers are supplied from the outside by the parser engine.

Attributes

Companion
object
Source
ParserBuilder.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Builds a block parser definition lazily by passing the recursive parsers of the host language.

Builds a block parser definition lazily by passing the recursive parsers of the host language.

This indirection is needed when supplying parser implementations as many parsers recursively parse child elements. A list parser for example needs to be able to detect any other block or span element within a list item. But since it has no way of knowing which extensions a user might have added to the host language, those parsers are supplied from the outside by the parser engine.

Attributes

Source
ParserBuilder.scala

Provides a test for the start of each line in plain paragraphs that indicates whether the line might be the start of a block identified by this parser.

Provides a test for the start of each line in plain paragraphs that indicates whether the line might be the start of a block identified by this parser. Without providing such a test the type of block produced by this parser can only occur after a blank line.

Attributes

Source
ParserBuilder.scala

Indicates that this parser should only be applied for blocks nested within other blocks.

Indicates that this parser should only be applied for blocks nested within other blocks.

Attributes

Source
ParserBuilder.scala

Indicates that this parser should only be applied for top level block items, but not for blocks nested within other blocks.

Indicates that this parser should only be applied for top level block items, but not for blocks nested within other blocks.

Attributes

Source
ParserBuilder.scala

Indicates that this parser should only be applied after all built-in parsers have failed on a specific markup element.

Indicates that this parser should only be applied after all built-in parsers have failed on a specific markup element.

Attributes

Source
ParserBuilder.scala