SpanParserDefinition
laika.api.bundle.SpanParserDefinition
class SpanParserDefinition(val startChars: Type[Char], val parser: Parser[Span], val isRecursive: Boolean, val precedence: Precedence) extends ParserDefinition[Span]
Defines a parser for a single kind of span element, like a literal text span or a link reference for example.
Value parameters
- isRecursive
-
indicates whether this parser produces child elements by recursively applying the parsers for the host language
- parser
-
the parser for the span element
- precedence
-
indicates whether the parser should be applied before the base parsers of the host language (high precedence) or after them
- startChars
-
all start characters that can start this span (allows performance optimizations)
Attributes
- Source
- ParserDefinition.scala
- Graph
-
- Supertypes
Members list
In this article