Skip to content

Commit 7e39836

Browse files
Apply suggestion from @spirit-at-canva
1 parent 50d2c36 commit 7e39836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)