Index: sdk/lib/_internal/dartdoc/lib/src/markdown/inline_parser.dart |
diff --git a/sdk/lib/_internal/dartdoc/lib/src/markdown/inline_parser.dart b/sdk/lib/_internal/dartdoc/lib/src/markdown/inline_parser.dart |
index 26c94848117f02613d3229924f5c528c1e2b3fe2..ae630e7c0a07066788e52db9086369bcdc71d5dd 100644 |
--- a/sdk/lib/_internal/dartdoc/lib/src/markdown/inline_parser.dart |
+++ b/sdk/lib/_internal/dartdoc/lib/src/markdown/inline_parser.dart |
@@ -388,7 +388,7 @@ class TagState { |
// Remove the unmatched children. |
final unmatchedTags = parser._stack.sublist(index + 1); |
- parser._stack.removeRange(index + 1, parser._stack.length - index - 1); |
+ parser._stack.removeRange(index + 1, parser._stack.length); |
// Flatten them out onto this tag. |
for (final unmatched in unmatchedTags) { |