LineBreakRecognizer

Recognizes a line break that is not at the end of a paragraph. A break preceded by two or more spaces or by a backslash is hard; any other is soft. A newline followed only by whitespace up to a line end is not a break at all, so the padding newline never is one.

Functions

Link copied to clipboard
open override fun recognize(source: CharSequence, index: Int): InlineMatch?