canParse method
Implementation
@override
bool canParse(BlockParser parser) {
final lastSyntax = parser.currentSyntax;
if (parser.setextHeadingDisabled || lastSyntax is! ParagraphSyntax) {
return false;
}
return pattern.hasMatch(parser.current.content);
}