diff --git a/src/Block/Parser/ListParser.php b/src/Block/Parser/ListParser.php index 131699837a..61019298d9 100644 --- a/src/Block/Parser/ListParser.php +++ b/src/Block/Parser/ListParser.php @@ -36,12 +36,17 @@ public function parse(ContextInterface $context, Cursor $cursor) return false; } + $indent = $cursor->getIndent(); + if ($indent >= 4) { + return false; + } + $tmpCursor = clone $cursor; $tmpCursor->advanceToNextNonSpaceOrTab(); $rest = $tmpCursor->getRemainder(); $data = new ListData(); - $data->markerOffset = $cursor->getIndent(); + $data->markerOffset = $indent; if (preg_match('/^[*+-]/', $rest) === 1) { $data->type = ListBlock::TYPE_UNORDERED;