Skip to content

Commit 137fc23

Browse files
Apply suggestion from @spirit-at-canva
1 parent 833b068 commit 137fc23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commonmark/src/main/java/org/commonmark/internal/DocumentParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ private void addSourceSpans() {
464464
}
465465

466466
private BlockStartImpl findBlockStart(BlockParser blockParser) {
467-
if (openBlockParsers.size() - 1 >= maxOpenBlockParsers) {
467+
if (openBlockParsers.size() > maxOpenBlockParsers) {
468468
return null;
469469
}
470470
MatchedBlockParser matchedBlockParser = new MatchedBlockParserImpl(blockParser);

0 commit comments

Comments
 (0)