mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 15:02:21 +00:00
* fix(html-backend): improve accordion extraction and hidden content handling - Add specialized handlers for Bootstrap accordion components to properly extract questions from panel-title elements - Implement is_hidden_element() method to detect and skip content with hidden classes, styles, and attributes - Update walk(), analyze_tag(), and extract_text_recursively() to filter out hidden elements - Add comprehensive test suite with direct method tests and example HTML files This fixes two issues: 1. Missing questions in accordion components 2. Unwanted extraction of hidden metadata content Tests: tests/test_html_enhanced.py Signed-off-by: Ulan.Yisaev <ulan.yisaev@nortal.com> * + html-backend itelsd Signed-off-by: Ulan.Yisaev <ulan.yisaev@nortal.com> * run pre-commit run --all-files --------- Signed-off-by: Ulan.Yisaev <ulan.yisaev@nortal.com> Co-authored-by: Ulan.Yisaev <ulan.yisaev@nortal.com> |
||
---|---|---|
.. | ||
accordion_test.html | ||
example_01.html | ||
example_02.html | ||
example_03.html | ||
example_04.html | ||
example_05.html | ||
example_06.html | ||
hidden_elements_test.html | ||
unit_test_01.html | ||
wiki_duck.html |