DelimiterRuns

Classification of delimiter runs. A position outside the source counts as whitespace, which is how CommonMark treats the start and the end of a line.

Functions

Link copied to clipboard
fun classify(source: CharSequence, index: Int, char: Char): DelimiterRun?

Classifies the delimiter run starting at an index.

Link copied to clipboard
fun isLineStart(source: CharSequence, index: Int): Boolean
Link copied to clipboard
fun runLengthOf(source: CharSequence, index: Int, char: Char): Int