DefaultRecursiveParsers
Default implementation for parsing inline markup and blocks recursively.
Type members
Inherited classlikes
- Inherited from:
- DefaultRecursiveSpanParsers
Value members
Abstract methods
Builds a parser for a list of blocks based on the parser for a single block.
Builds a parser for a list of blocks based on the parser for a single block.
Parses blocks, excluding blocks that allow nesting. Only used in rare cases when the maximum nest level allowed had been reached
Parses blocks, excluding blocks that allow nesting. Only used in rare cases when the maximum nest level allowed had been reached
Concrete methods
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
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
Provides the syntax highlighter for the specified language if present.
Provides the syntax highlighter for the specified language if present.
- Inherited from:
- RecursiveSpanParsers
Provides a test for the start of each line in plain paragraphs that indicates whether the line might be the start of a block that is allowed to interrupt paragraphs.
Provides a test for the start of each line in plain paragraphs that indicates whether the line might be the start of a block that is allowed to interrupt paragraphs.
Usually this is only supposed to be used by implementations of a base paragraph parser for a markup language, not by custom extensions.
If the parser returned by this function succeeds the result is the block that interrupts the paragraph, if it fails normal paragraph parsing should resume.
- Inherited from:
- RecursiveParsers
All default span parsers registered for a host markup language.
All default span parsers registered for a host markup language.
- Inherited from:
- DefaultRecursiveSpanParsers
Concrete fields
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 fields
Parses a single escape character. In the default implementation any character can be escaped. Sub-traits may override this parser to restrict the number of escapable characters.
Parses a single escape character. In the default implementation any character can be escaped. Sub-traits may override this parser to restrict the number of escapable characters.
- Inherited from:
- DefaultEscapedTextParsers