InlineMathRecognizer

Recognizes a one-line math expression inside a line of text. The expression must be surrounded by a line start, whitespace or a non-word character on both sides. A closing delimiter that is not followed by such a boundary is skipped and a later candidate is tried.

Functions

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