User Story
As a maintainer,
I want to correct the test expectations for nested code block extraction
so that our test suite accurately validates proper handling of inner backticks.
Background
The current regex pattern in mdextractor/__init__.py fails to handle nested backticks, splitting the outer block at the first inner triple backticks. This causes the test test_nested_code_blocks in tests/test_mdextractor.py to incorrectly validate ["Outer", "end"] instead of the full "Outer inner end" string. This creates a false positive, masking a critical flaw in code block extraction logic that could impact users relying on nested Markdown structures.
Acceptance Criteria
User Story
As a maintainer,
I want to correct the test expectations for nested code block extraction
so that our test suite accurately validates proper handling of inner backticks.
Background
The current regex pattern in
mdextractor/__init__.pyfails to handle nested backticks, splitting the outer block at the first inner triple backticks. This causes the testtest_nested_code_blocksintests/test_mdextractor.pyto incorrectly validate ["Outer", "end"] instead of the full "Outerinnerend" string. This creates a false positive, masking a critical flaw in code block extraction logic that could impact users relying on nested Markdown structures.Acceptance Criteria
mdextractor/__init__.pyto properly capture nested backticks without premature block termination.test_nested_code_blockstest case intests/test_mdextractor.pyto expect["Outer ```inner``` end"].outermiddle ```inner``````).