Repository: jackdewinter/pymarkdown

Issue:
More nesting tests: maximum spaces between containers, plus one.

Discussion:

Patch:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 494dcf0c..f32bcc58 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,6 @@
 repos:
   - repo: https://github.com/jackdewinter/pymarkdown
-    rev: 0.9.4
+    rev: 0.9.3
     hooks:
       - id: pymarkdown
         name: PyMarkdown
diff --git a/publish/coverage.json b/publish/coverage.json
index 84e708e6..93c74acb 100644
--- a/publish/coverage.json
+++ b/publish/coverage.json
@@ -2,12 +2,12 @@
     "projectName": "pymarkdown",
     "reportSource": "pytest",
     "branchLevel": {
-        "totalMeasured": 3002,
-        "totalCovered": 3002
+        "totalMeasured": 3010,
+        "totalCovered": 3010
     },
     "lineLevel": {
-        "totalMeasured": 10488,
-        "totalCovered": 10488
+        "totalMeasured": 10520,
+        "totalCovered": 10520
     }
 }
 
diff --git a/pymarkdown/container_block_processor.py b/pymarkdown/container_block_processor.py
index 7c36187f..dc39bb15 100644
--- a/pymarkdown/container_block_processor.py
+++ b/pymarkdown/container_block_processor.py
@@ -46,7 +46,7 @@ class ContainerBlockProcessor:
             container_depth,
             parser_properties,
         ):
-            return None, None, None, None, None, None, True
+            return None, None, None, None, None, None, True, None
 
         position_marker = ContainerBlockProcessor.__prepare_container_start_variables(
             parser_state,
@@ -66,6 +66,13 @@ class ContainerBlockProcessor:
             foobar,
             init_bq,
         )
+
+        is_not_in_root_list = not (
+            parser_state.token_stack
+            and len(parser_state.token_stack) >= 2
+            and parser_state.token_stack[1].is_list
+        )
+
         return (
             position_marker,
             current_container_blocks,
@@ -74,6 +81,7 @@ class ContainerBlockProcessor:
             start_index,
             extracted_whitespace,
             False,
+            is_not_in_root_list,
         )
 
     # pylint: enable=too-many-arguments
@@ -108,6 +116,7 @@ class ContainerBlockProcessor:
             start_index,
             extracted_whitespace,
             did_find_pragma,
+            is_not_in_root_list,
         ) = ContainerBlockProcessor.__setup(
             parser_state,
             position_marker,
@@ -121,12 +130,6 @@ class ContainerBlockProcessor:
 
         # POGGER.debug(">>extracted_whitespace>>:$:", extracted_whitespace)
         # POGGER.debug(">>parser_state.token_stack:$", parser_state.token_stack)
-        is_not_in_root_list = not (
-            parser_state.token_stack
-            and len(parser_state.token_stack) >= 2
-            and parser_state.token_stack[1].is_list
-        )
-
         # POGGER.debug(">>container_depth=$", container_depth)
         # POGGER.debug(">>extracted_whitespace=:$:", extracted_whitespace)
         # POGGER.debug(">>is_not_in_root_list=:$:", is_not_in_root_list)
@@ -170,6 +173,7 @@ class ContainerBlockProcessor:
                 requeue_line_info,
                 block_quote_data,
                 indent_already_processed,
+                force_leaf_token_parse,
             ) = ContainerBlockProcessor.__handle_non_leaf_block(
                 parser_state,
                 position_marker,
@@ -187,7 +191,9 @@ class ContainerBlockProcessor:
         # POGGER.debug("start_index>>$", start_index)
 
         # POGGER.debug("indent_already_processed=$", indent_already_processed)
-        if can_continue and not skip_containers_before_leaf_blocks:
+        if (
+            can_continue and not skip_containers_before_leaf_blocks
+        ) or force_leaf_token_parse:
             # POGGER.debug(">>text_removed_by_container>>:$:", text_removed_by_container)
             # POGGER.debug(
             #     ">>was_paragraph_continuation>>:$:", was_paragraph_continuation
@@ -265,6 +271,7 @@ class ContainerBlockProcessor:
             skip_containers_before_leaf_blocks,
             used_indent,
             indent_already_processed,
+            force_leaf_token_parse,
         ) = ContainerBlockProcessor.__handle_pre_processed_indent(
             parser_state,
             position_marker,
@@ -272,6 +279,10 @@ class ContainerBlockProcessor:
             extracted_whitespace,
             is_para_continue,
         )
+        # POGGER.debug(
+        #     "skip_containers_before_leaf_blocks:$:", skip_containers_before_leaf_blocks
+        # )
+        # POGGER.debug("have_pre_processed_indent:$:", have_pre_processed_indent)
         # POGGER.debug("indent_already_processed=$", indent_already_processed)
         if have_pre_processed_indent:
             (
@@ -303,11 +314,11 @@ class ContainerBlockProcessor:
             # POGGER.debug("line_to_parse>>$", line_to_parse)
             # POGGER.debug("start_index>>$", start_index)
         # POGGER.debug(
-        #     "not can_continue=$ and skip_containers_before_leaf_blocks=$",
+        #     "not can_continue=$ and not skip_containers_before_leaf_blocks=$",
         #     can_continue,
         #     skip_containers_before_leaf_blocks,
         # )
-        if not can_continue:
+        if not can_continue and not skip_containers_before_leaf_blocks:
             (
                 block_quote_data,
                 line_to_parse,
@@ -335,8 +346,8 @@ class ContainerBlockProcessor:
                 parser_properties,
             )
             # POGGER.debug("was_paragraph_continuation>>$", was_paragraph_continuation)
-            # POGGER.debug("line_to_parse>>$", line_to_parse)
-            # POGGER.debug("start_index>>$", start_index)
+        # POGGER.debug("line_to_parse>>$", line_to_parse)
+        # POGGER.debug("start_index>>$", start_index)
         # POGGER.debug("indent_already_processed=$", indent_already_processed)
         return (
             can_continue,
@@ -354,6 +365,7 @@ class ContainerBlockProcessor:
             requeue_line_info,
             block_quote_data,
             indent_already_processed,
+            force_leaf_token_parse,
         )
 
     # pylint: enable=too-many-arguments, too-many-locals
@@ -393,9 +405,70 @@ class ContainerBlockProcessor:
         )
         return container_used_indent, extracted_whitespace
 
+    @staticmethod
+    def __special_list_block_block(parser_state, position_marker, extracted_whitespace):
+        skip_containers_before_leaf_blocks = False
+        did_indent_processing = False
+        have_pre_processed_indent = False
+        force_leaf_token_parse = False
+        used_indent = -1
+        if (
+            parser_state.token_stack[1].is_list
+            and parser_state.token_stack[2].is_block_quote
+            and parser_state.token_stack[3].is_block_quote
+            and parser_state.token_stack[4].is_paragraph
+            and parser_state.token_stack[1].matching_markdown_token.line_number
+            == parser_state.token_stack[3].matching_markdown_token.line_number
+        ):
+
+            container_used_indent = parser_state.token_stack[
+                1
+            ].matching_markdown_token.indent_level
+            POGGER.debug("container_used_indent:$:", container_used_indent)
+            extracted_whitespace_length = len(extracted_whitespace)
+            POGGER.debug(
+                "extracted_whitespace:$:($)",
+                extracted_whitespace,
+                extracted_whitespace_length,
+            )
+            POGGER.debug("text_to_parse=:$:", position_marker.text_to_parse)
+            POGGER.debug(
+                "text_to_parse[rt]=:$:",
+                position_marker.text_to_parse[extracted_whitespace_length],
+            )
+            POGGER.debug("index_number=:$:", position_marker.index_number)
+            if (
+                container_used_indent != extracted_whitespace_length
+                and position_marker.text_to_parse[extracted_whitespace_length] == ">"
+                and extracted_whitespace_length - container_used_indent >= 4
+            ):
+                parser_state.token_stack[1].matching_markdown_token.add_leading_spaces(
+                    extracted_whitespace[:container_used_indent]
+                )
+                skip_containers_before_leaf_blocks = True
+                did_indent_processing = True
+                have_pre_processed_indent = True
+                force_leaf_token_parse = True
+                used_indent = container_used_indent
+            POGGER.debug(
+                "skip_containers_before_leaf_blocks:$:",
+                skip_containers_before_leaf_blocks,
+            )
+        return (
+            skip_containers_before_leaf_blocks,
+            did_indent_processing,
+            have_pre_processed_indent,
+            force_leaf_token_parse,
+            used_indent,
+        )
+
     @staticmethod
     def __determine_leading_whitespace_preprocessing(
-        parser_state, position_marker, container_depth, extracted_whitespace
+        parser_state,
+        position_marker,
+        container_depth,
+        extracted_whitespace,
+        is_para_continue,
     ):
         (
             did_indent_processing,
@@ -405,33 +478,51 @@ class ContainerBlockProcessor:
             container_used_indent,
             used_indent,
             container_level_tokens,
-        ) = (False, False, False, False, 0, -1, [])
-        if position_marker.index_number == -1 and container_depth:
-            (
-                container_used_indent,
-                extracted_whitespace,
-            ) = ContainerBlockProcessor.__calculate_container_used_indent(
-                parser_state, position_marker, container_depth, extracted_whitespace
-            )
-        POGGER.debug("extracted_whitespace:$:", extracted_whitespace)
-        if len(extracted_whitespace) >= 4:
-            POGGER.debug(">>leading_whitespace_processing")
+            force_leaf_token_parse,
+        ) = (False, False, False, False, 0, -1, [], False)
+        POGGER.debug("is_para_continue:$:", is_para_continue)
+        if is_para_continue and not container_depth:
             (
+                skip_containers_before_leaf_blocks,
+                did_indent_processing,
                 have_pre_processed_indent,
+                force_leaf_token_parse,
                 used_indent,
-                container_level_tokens,
-            ) = ContainerBlockProcessor.__handle_leading_whitespace(
-                parser_state,
-                position_marker,
-                extracted_whitespace,
-                container_depth,
-                container_used_indent,
+            ) = ContainerBlockProcessor.__special_list_block_block(
+                parser_state, position_marker, extracted_whitespace
             )
-            (
-                did_indent_processing,
-                skip_containers_before_leaf_blocks,
-                indent_already_processed,
-            ) = (True, False, bool(container_depth))
+        elif not is_para_continue:
+            POGGER.debug(
+                "position_marker.index_number:$:", position_marker.index_number
+            )
+            POGGER.debug("container_depth:$:", container_depth)
+            if position_marker.index_number == -1 and container_depth:
+                (
+                    container_used_indent,
+                    extracted_whitespace,
+                ) = ContainerBlockProcessor.__calculate_container_used_indent(
+                    parser_state, position_marker, container_depth, extracted_whitespace
+                )
+            POGGER.debug("container_used_indent:$:", container_used_indent)
+            POGGER.debug("extracted_whitespace:$:", extracted_whitespace)
+            if len(extracted_whitespace) >= 4:
+                POGGER.debug(">>leading_whitespace_processing")
+                (
+                    have_pre_processed_indent,
+                    used_indent,
+                    container_level_tokens,
+                ) = ContainerBlockProcessor.__handle_leading_whitespace(
+                    parser_state,
+                    position_marker,
+                    extracted_whitespace,
+                    container_depth,
+                    container_used_indent,
+                )
+                (
+                    did_indent_processing,
+                    skip_containers_before_leaf_blocks,
+                    indent_already_processed,
+                ) = (True, False, bool(container_depth))
             # POGGER.debug("indent_already_processed=$", indent_already_processed)
         return (
             did_indent_processing,
@@ -440,6 +531,7 @@ class ContainerBlockProcessor:
             have_pre_processed_indent,
             used_indent,
             container_level_tokens,
+            force_leaf_token_parse,
         )
 
     @staticmethod
@@ -465,14 +557,14 @@ class ContainerBlockProcessor:
             False,
             False,
         )
+        force_leaf_token_parse = False
 
         need_trailing_indent_processing = (
             container_depth >= len(parser_state.token_stack) - 1
             and position_marker.index_number == -1
         )
-        need_leading_whitespace_processing = (
-            not is_para_continue
-            and container_depth < (len(parser_state.token_stack) - 1)
+        need_leading_whitespace_processing = container_depth < (
+            len(parser_state.token_stack) - 1
         )
         POGGER.debug(
             "need_trailing_indent_processing($) = container_depth($) >= len(token)-1($) and index_number($) == -1",
@@ -512,9 +604,18 @@ class ContainerBlockProcessor:
                 have_pre_processed_indent,
                 used_indent,
                 container_level_tokens,
+                force_leaf_token_parse,
             ) = ContainerBlockProcessor.__determine_leading_whitespace_preprocessing(
-                parser_state, position_marker, container_depth, extracted_whitespace
+                parser_state,
+                position_marker,
+                container_depth,
+                extracted_whitespace,
+                is_para_continue,
             )
+            # POGGER.debug(
+            #     "skip_containers_before_leaf_blocks:$:",
+            #     skip_containers_before_leaf_blocks,
+            # )
         if not did_indent_processing:
             (
                 have_pre_processed_indent,
@@ -531,6 +632,7 @@ class ContainerBlockProcessor:
             skip_containers_before_leaf_blocks,
             used_indent,
             indent_already_processed,
+            force_leaf_token_parse,
         )
 
     @staticmethod


Test patch:
diff --git a/publish/test-results.json b/publish/test-results.json
index de094f64..b08e3fdc 100644
--- a/publish/test-results.json
+++ b/publish/test-results.json
@@ -495,7 +495,7 @@
             "totalTests": 52,
             "failedTests": 0,
             "errorTests": 0,
-            "skippedTests": 1,
+            "skippedTests": 0,
             "elapsedTimeInMilliseconds": 0
         },
         {
@@ -519,7 +519,7 @@
             "totalTests": 52,
             "failedTests": 0,
             "errorTests": 0,
-            "skippedTests": 1,
+            "skippedTests": 0,
             "elapsedTimeInMilliseconds": 0
         },
         {
diff --git a/test/test_markdown_block_quotes.py b/test/test_markdown_block_quotes.py
index e459f4d0..9d993a3a 100644
--- a/test/test_markdown_block_quotes.py
+++ b/test/test_markdown_block_quotes.py
@@ -1621,7 +1621,7 @@ def test_block_quotes_229dx():
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
@@ -2348,7 +2348,7 @@ quote</li>
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
diff --git a/test/test_markdown_link_reference_definitions.py b/test/test_markdown_link_reference_definitions.py
index b73d0b05..a3b708ea 100644
--- a/test/test_markdown_link_reference_definitions.py
+++ b/test/test_markdown_link_reference_definitions.py
@@ -2024,7 +2024,7 @@ def test_link_reference_definitions_extra_02cx():
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
diff --git a/test/test_markdown_nested_three_block_block.py b/test/test_markdown_nested_three_block_block.py
index d0d31d9c..be03b36c 100644
--- a/test/test_markdown_nested_three_block_block.py
+++ b/test/test_markdown_nested_three_block_block.py
@@ -1149,7 +1149,7 @@ item</li>
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
@@ -3219,7 +3219,7 @@ def test_nested_three_block_nl_block_nl_block_no_bq5():
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
@@ -3265,7 +3265,7 @@ def test_nested_three_block_nl_block_nl_block_no_bq6():
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
@@ -4709,7 +4709,7 @@ def test_nested_three_block_max_block_max_ordered_max_plus_one():
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
diff --git a/test/test_markdown_nested_three_block_ordered.py b/test/test_markdown_nested_three_block_ordered.py
index 2004ec72..52ddc900 100644
--- a/test/test_markdown_nested_three_block_ordered.py
+++ b/test/test_markdown_nested_three_block_ordered.py
@@ -301,7 +301,7 @@ item</li>
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
@@ -2895,4 +2895,4 @@ def test_nested_three_block_max_ordered_max_block_max_plus_one():
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
diff --git a/test/test_markdown_nested_three_block_unordered.py b/test/test_markdown_nested_three_block_unordered.py
index 82c606aa..561bc492 100644
--- a/test/test_markdown_nested_three_block_unordered.py
+++ b/test/test_markdown_nested_three_block_unordered.py
@@ -2812,7 +2812,7 @@ item</p>
 </blockquote>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
diff --git a/test/test_markdown_nested_three_ordered_block.py b/test/test_markdown_nested_three_ordered_block.py
index c7d74384..5b244789 100644
--- a/test/test_markdown_nested_three_ordered_block.py
+++ b/test/test_markdown_nested_three_ordered_block.py
@@ -128,7 +128,7 @@ def test_nested_three_ordered_nl_block_nl_unordered_wo_bq():
 </ol>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
@@ -225,7 +225,7 @@ def test_nested_three_ordered_text_nl_block_text_nl_unordered_wo_bq():
 </ol>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
 
 
 @pytest.mark.gfm
@@ -1070,7 +1070,7 @@ list</p>
 
 
 @pytest.mark.gfm
-def test_nested_three_ordered_block_skip_block():
+def test_nested_three_ordered_block_skip_block_x():
     """
     Verify that a nesting of ordered list, block quote, block quote works
     properly.
@@ -1102,7 +1102,7 @@ item</p>
 </ol>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
 
 
 @pytest.mark.gfm
@@ -1907,7 +1907,6 @@ def test_nested_three_ordered_max_block_max_ordered_max_plus_one():
 
 
 @pytest.mark.gfm
-@pytest.mark.skip
 def test_nested_three_ordered_max_block_max_block_max():
     """
     Verify that a nesting of ordered list, block quote, block quote, with
@@ -1918,11 +1917,11 @@ def test_nested_three_ordered_max_block_max_block_max():
     source_markdown = """   1.    >    > list
               > item"""
     expected_tokens = [
-        "[olist(1,4):.:1:9:   :]",
+        "[olist(1,4):.:1:9:   :         \n]",
         "[block-quote(1,10):         :         > ]",
-        "[block-quote(1,15)::         >    > \n              > ]",
-        "[para(1,17):\n]",
-        "[text(1,17):list\nitem::\n]",
+        "[block-quote(1,15)::         >    > \n]",
+        "[para(1,17):\n     ]",
+        "[text(1,17):list\n\a>\a&gt;\a item::\n]",
         "[end-para:::True]",
         "[end-block-quote:::True]",
         "[end-block-quote:::True]",
diff --git a/test/test_markdown_nested_three_ordered_unordered.py b/test/test_markdown_nested_three_ordered_unordered.py
index d111c6b3..679fc7cf 100644
--- a/test/test_markdown_nested_three_ordered_unordered.py
+++ b/test/test_markdown_nested_three_ordered_unordered.py
@@ -884,4 +884,4 @@ def test_nested_three_ordered_max_unordered_max_block_max_plus_one():
 </ol>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
diff --git a/test/test_markdown_nested_three_unordered_block.py b/test/test_markdown_nested_three_unordered_block.py
index c0e109ca..b535c68c 100644
--- a/test/test_markdown_nested_three_unordered_block.py
+++ b/test/test_markdown_nested_three_unordered_block.py
@@ -1778,7 +1778,7 @@ def test_nested_three_unordered_max_block_max_unordered_max_plus_one():
 </ul>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
@@ -1907,7 +1907,6 @@ def test_nested_three_unordered_max_block_max_ordered_max_plus_one():
 
 
 @pytest.mark.gfm
-@pytest.mark.skip
 def test_nested_three_unordered_max_block_max_block_max():
     """
     Verify that a nesting of unordered list, block quote, block quote, with
@@ -1918,11 +1917,11 @@ def test_nested_three_unordered_max_block_max_block_max():
     source_markdown = """   +    >    > list
              > item"""
     expected_tokens = [
-        "[ulist(1,4):+::8:   :]",
+        "[ulist(1,4):+::8:   :        \n]",
         "[block-quote(1,9):        :        > ]",
-        "[block-quote(1,14)::        >    > \n             > ]",
-        "[para(1,16):\n]",
-        "[text(1,16):list\nitem::\n]",
+        "[block-quote(1,14)::        >    > \n]",
+        "[para(1,16):\n     ]",
+        "[text(1,16):list\n\a>\a&gt;\a item::\n]",
         "[end-para:::True]",
         "[end-block-quote:::True]",
         "[end-block-quote:::True]",
@@ -1940,7 +1939,7 @@ def test_nested_three_unordered_max_block_max_block_max():
 </ul>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
 
 
 @pytest.mark.gfm
@@ -2029,4 +2028,4 @@ def test_nested_three_unordered_max_block_max_block_max_plus_one():
 </ul>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
diff --git a/test/test_markdown_nested_three_unordered_ordered.py b/test/test_markdown_nested_three_unordered_ordered.py
index 086b1473..4426e700 100644
--- a/test/test_markdown_nested_three_unordered_ordered.py
+++ b/test/test_markdown_nested_three_unordered_ordered.py
@@ -759,7 +759,7 @@ def test_nested_three_unordered_max_ordered_max_ordered_max_plus_one():
 </ul>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=False)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm
diff --git a/test/test_markdown_paragraph_series_m_ib.py b/test/test_markdown_paragraph_series_m_ib.py
index 27a7c5a6..cff8b58a 100644
--- a/test/test_markdown_paragraph_series_m_ib.py
+++ b/test/test_markdown_paragraph_series_m_ib.py
@@ -302,7 +302,7 @@ foo</li>
 </ol>"""
 
     # Act & Assert
-    act_and_assert(source_markdown, expected_gfm, expected_tokens, show_debug=True)
+    act_and_assert(source_markdown, expected_gfm, expected_tokens)
 
 
 @pytest.mark.gfm