refactor(HTML): handle text from styled html (#1960)

* A new HTML backend that handles styled html (ignors it) as well as images.

Images are parsed as placeholders with a caption, if it exists.

Co-authored-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
Co-authored-by: vaaale <2428222+vaaale@users.noreply.github.com>
Signed-off-by: Alexander Vaagan <alexander.vaagan@gmail.com>
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
Signed-off-by: vaaale <2428222+vaaale@users.noreply.github.com>

* tests(HTML): re-enable test_ordered_lists

Re-enable test_ordered_lists regression test for the HTML backend since
docling-core now supports ordered lists with custom start value.

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>

---------

Signed-off-by: Alexander Vaagan <alexander.vaagan@gmail.com>
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
Signed-off-by: vaaale <2428222+vaaale@users.noreply.github.com>
Co-authored-by: Alexander Vaagan <2428222+vaaale@users.noreply.github.com>
This commit is contained in:
Cesar Berrospi Ramis
2025-07-22 13:16:31 +02:00
committed by GitHub
parent 5d98bcea1b
commit a069b1175b
15 changed files with 3241 additions and 2183 deletions

View File

@@ -3,8 +3,8 @@ item-0 at level 0: unspecified: group _root_
item-2 at level 1: text: This is another div with text.
item-3 at level 1: text: This is a regular paragraph.
item-4 at level 1: text: This is a third div
with a new line.
item-5 at level 1: section: group details
item-6 at level 2: text: Heading for the details element
item-7 at level 2: text: Description of the details element.
item-8 at level 1: text: This is a fourth div with a bold paragraph.
item-5 at level 1: text: with a new line.
item-6 at level 1: section: group details
item-7 at level 2: text: Heading for the details element
item-8 at level 2: text: Description of the details element.
item-9 at level 1: text: This is a fourth div with a bold paragraph.