- Added a new function `_propagate_section_type_backwards` to ensure that the section_type is correctly assigned to all blocks within a heading section, even if the [!section] callout appears later in the text. - Updated the `parse_blocks` function to call this new method, enhancing the accuracy of section-type assignments. - Modified chunking strategies to reflect the changes in section-type handling, simplifying logic related to section-type transitions. - Expanded unit tests to validate the backward propagation of section_type, ensuring comprehensive coverage of the new functionality. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| chunking_models.py | ||
| chunking_parser.py | ||
| chunking_processor.py | ||
| chunking_propagation.py | ||
| chunking_strategies.py | ||
| chunking_utils.py | ||