Moved to the state: every rich text editor has the block API, markdown or not.
import com.darkrockstudios.texteditor.state.listLevel
editorState.listLevel(line)