RootParser

class RootParser(markupParser: MarkupFormat, markupExtensions: MarkupExtensions) extends DefaultRecursiveParsers

Responsible of assembling all the block, inline, text and configuration parsers supported by a text markup language.

Type members

Inherited classlikes

protected class RecursiveSpanParserDelegate(delegate: Parser[Seq[Span]]) extends RecursiveSpanParser

Value members

Concrete methods

def blockList(p: => Parser[Block]): Parser[Seq[Block]]
def getSyntaxHighlighter(language: String): Option[RecursiveSpanParser]

Inherited methods

Adds support for escape sequences to the specified text parser.

Adds support for escape sequences to the specified text parser.

Value parameters:
p

the parser to add support for escape sequences to

Returns:

a parser for a text span that supports escape sequences

Inherited from:
DefaultEscapedTextParsers
def escapedUntil(char: Char, chars: Char*): Parser[String]

Parses a span of text until one of the specified characters is seen (unless it is escaped), while also processing escaped characters, but no other nested spans. The final character is not included in the result.

Parses a span of text until one of the specified characters is seen (unless it is escaped), while also processing escaped characters, but no other nested spans. The final character is not included in the result.

Inherited from:
DefaultEscapedTextParsers

Concrete fields

lazy override val escapedChar: Parser[String]

Parses a full document, delegating most of the work to the topLevelBlock parser.

Parses a full document, delegating most of the work to the topLevelBlock parser.

Inherited fields

lazy protected val defaultSpanParser: InlineParser[Span, List[Span]]
val maxNestLevel: Int

The maximum level of block nesting. Some block types like lists and blockquotes contain nested blocks. To protect against malicious input or accidentally broken markup, the level of nesting is restricted.

The maximum level of block nesting. Some block types like lists and blockquotes contain nested blocks. To protect against malicious input or accidentally broken markup, the level of nesting is restricted.

Inherited from:
DefaultRecursiveParsers