MarkdownConstraints

A generalized "indent" in markdown world. Stores types of blocks spawning indents alongside indents themselves.

Inheritors

Properties

Link copied to clipboard
abstract val charsEaten: Int
Link copied to clipboard
abstract val indent: Int
Link copied to clipboard
abstract val isExplicit: BooleanArray
Link copied to clipboard
abstract val types: CharArray

Functions

Link copied to clipboard

Return new constraints with a new modifier added or {@code null} if position does not add new modifiers

Link copied to clipboard

Returns a constraints for the next line (at given pos) by continuing as much as possible from {@code this} constraints without adding any new modifiers

Link copied to clipboard
abstract fun containsListMarkers(upToIndex: Int): Boolean

Leaking abstraction: whether there are "breaking" modifiers which do not continue other constraints even if all types and indents are correct. In fact, means whether there are list markers or not.

Link copied to clipboard
Link copied to clipboard
abstract fun startsWith(other: MarkdownConstraints): Boolean

Whether another constraints can "continue" opened blocks corresponding to {@code this} constraints