Fix task list block parser to revert parsing state when line is not matching
This commit is contained in:
parent
8fb15b77a1
commit
4ae310595a
@ -60,7 +60,9 @@ class TaskListBlockParser extends AbstractBlockParser {
|
||||
&& PATTERN.matcher(line).matches()) {
|
||||
blockContinue = BlockContinue.atIndex(parserState.getIndex());
|
||||
} else {
|
||||
blockContinue = BlockContinue.finished();
|
||||
// @since 2.0.0, previously called `BlockContinue.finished()`
|
||||
// that was swallowing non-matching lines
|
||||
blockContinue = BlockContinue.none();
|
||||
}
|
||||
|
||||
return blockContinue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user