in src/commonMain/kotlin/org/intellij/markdown/parser/MarkerProcessor.kt [42:61]
open fun createNewMarkerBlocks(pos: LookaheadText.Position,
productionHolder: ProductionHolder): List<MarkerBlock> {
assert(MarkerBlockProvider.isStartOfLineWithConstraints(pos, stateInfo.currentConstraints))
for (provider in getMarkerBlockProviders()) {
val list = provider.createMarkerBlocks(pos, productionHolder, stateInfo)
if (list.isNotEmpty()) {
return list
}
}
if (//!Character.isWhitespace(pos.char) &&
//stateInfo.paragraphBlock == null &&
pos.offsetInCurrentLine >= stateInfo.nextConstraints.getCharsEaten(pos.currentLine)
&& pos.charsToNonWhitespace() != null) {
return listOf(ParagraphMarkerBlock(stateInfo.currentConstraints, productionHolder.mark(), interruptsParagraph))
}
return emptyList()
}