Skip to content

Commit

Permalink
Remove the reference to 'parser.lines' in canParse().
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Mar 6, 2024
1 parent 01e33f4 commit e1f03f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/block_syntaxes/alert_block_syntax.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class AlertBlockSyntax extends BlockSyntax {

@override
bool canParse(BlockParser parser) {
return pattern.hasMatch(parser.current.content) &&
parser.lines.any((line) => _contentLineRegExp.hasMatch(line.content));
return alertPattern.hasMatch(parser.current.content);
}

/// Whether this alert ends with a lazy continuation line.
Expand Down

0 comments on commit e1f03f2

Please sign in to comment.