# Thematic breaks parser factory
class MdThematicBreakParserFactory
super MdBlockQuoteParserFactory
redef fun try_start(state, matched_block_parser) do
if state.indent >= 4 then return null
var next_non_space = state.next_non_space_index
var line = state.line_string
var tbreak = line.substring(next_non_space, line.length - next_non_space).search(re_thematic_break)
if tbreak != null then
return (new MdBlockStart(
[new MdThematicBreakParser(
state.line,
state.column + 1,
next_non_space,
tbreak.to_s)]
)).at_index(line.length)
end
return null
end
end
lib/markdown2/markdown_block_parsing.nit:1197,1--1218,3