[markdown] Document DocumentContainerNesting and assert the nesting cap Check that 101 nested block quote markers produce exactly 100 `<blockquote>` elements and that the last marker is parsed as text.
diff --git a/pkgs/markdown/test/regression_test.dart b/pkgs/markdown/test/regression_test.dart index 9d1877c..c074822 100644 --- a/pkgs/markdown/test/regression_test.dart +++ b/pkgs/markdown/test/regression_test.dart
@@ -254,7 +254,9 @@ }); test('container block nesting depth is capped at 100', () { - expect(markdownToHtml('${'> ' * 101}a'), isNotEmpty); + final html = markdownToHtml('${'> ' * 101}a'); + expect('<blockquote>'.allMatches(html).length, 100); + expect(html, contains('<p>> a</p>')); }); }