markdown2 :: MdParser :: find_line_break
We consider \r
and \n
.
# Return the position of the next line break
#
# We consider `\r` and `\n`.
private fun find_line_break(input: String, start_index: Int): Int do
for i in [start_index .. input.length[ do
var char = input.chars[i]
if char == '\r' or char == '\n' then return i
end
return -1
end
lib/markdown2/markdown_block_parsing.nit:382,2--391,4