ParagraphRecognizer

Recognizes plain text content: a non-empty line, continued by every following line that is neither empty nor an interruption.

The paragraph's text stops before the terminator of its last line, and the block lexer drops that newline.

Parameters

interruption

what ends the paragraph, supplied by the flavor

Constructors

Link copied to clipboard
constructor(interruption: Interruption)

Properties

Link copied to clipboard
open override val isLineAnchored: Boolean = false

Whether the recognizer only opens at the start of a line.

Functions

Link copied to clipboard
open override fun open(cursor: LineCursor): BlockMatch?