docling-core 2.48.1__py3-none-any.whl → 2.48.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of docling-core might be problematic. Click here for more details.

@@ -4386,6 +4386,7 @@ class DoclingDocument(BaseModel):
4386
4386
  to_element: int = sys.maxsize,
4387
4387
  labels: Optional[set[DocItemLabel]] = None,
4388
4388
  strict_text: bool = False,
4389
+ escape_html: bool = True,
4389
4390
  escaping_underscores: bool = True,
4390
4391
  image_placeholder: str = "<!-- image -->",
4391
4392
  image_mode: ImageRefMode = ImageRefMode.PLACEHOLDER,
@@ -4414,6 +4415,7 @@ class DoclingDocument(BaseModel):
4414
4415
  to_element=to_element,
4415
4416
  labels=labels,
4416
4417
  strict_text=strict_text,
4418
+ escape_html=escape_html,
4417
4419
  escape_underscores=escaping_underscores,
4418
4420
  image_placeholder=image_placeholder,
4419
4421
  image_mode=image_mode,
@@ -4435,6 +4437,7 @@ class DoclingDocument(BaseModel):
4435
4437
  to_element: int = sys.maxsize,
4436
4438
  labels: Optional[set[DocItemLabel]] = None,
4437
4439
  strict_text: bool = False,
4440
+ escape_html: bool = True,
4438
4441
  escape_underscores: bool = True,
4439
4442
  image_placeholder: str = "<!-- image -->",
4440
4443
  enable_chart_tables: bool = True,
@@ -4465,6 +4468,8 @@ class DoclingDocument(BaseModel):
4465
4468
  :type labels: Optional[set[DocItemLabel]] = None
4466
4469
  :param strict_text: Deprecated.
4467
4470
  :type strict_text: bool = False
4471
+ :param escape_html: bool: Whether to escape HTML reserved characters in the
4472
+ text content of the document. (Default value = True).
4468
4473
  :param escape_underscores: bool: Whether to escape underscores in the
4469
4474
  text content of the document. (Default value = True).
4470
4475
  :type escape_underscores: bool = True
@@ -4511,6 +4516,7 @@ class DoclingDocument(BaseModel):
4511
4516
  pages={page_no} if page_no is not None else None,
4512
4517
  start_idx=from_element,
4513
4518
  stop_idx=to_element,
4519
+ escape_html=escape_html,
4514
4520
  escape_underscores=escape_underscores,
4515
4521
  image_placeholder=image_placeholder,
4516
4522
  enable_chart_tables=enable_chart_tables,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docling-core
3
- Version: 2.48.1
3
+ Version: 2.48.2
4
4
  Summary: A python library to define and validate data types in Docling.
5
5
  Author-email: Cesar Berrospi Ramis <ceb@zurich.ibm.com>, Panos Vagenas <pva@zurich.ibm.com>, Michele Dolfi <dol@zurich.ibm.com>, Christoph Auer <cau@zurich.ibm.com>, Peter Staar <taa@zurich.ibm.com>
6
6
  Maintainer-email: Panos Vagenas <pva@zurich.ibm.com>, Michele Dolfi <dol@zurich.ibm.com>, Christoph Auer <cau@zurich.ibm.com>, Peter Staar <taa@zurich.ibm.com>, Cesar Berrospi Ramis <ceb@zurich.ibm.com>
@@ -43,7 +43,7 @@ docling_core/types/__init__.py,sha256=MVRSgsk5focwGyAplh_TRR3dEecIXpd98g_u3zZ5HX
43
43
  docling_core/types/base.py,sha256=PusJskRVL19y-hq0BgXr5e8--QEqSqLnFNJ8UbOqW88,8318
44
44
  docling_core/types/doc/__init__.py,sha256=Vsl3oJV3_BLpS7rIwvahhcWOwmEBvj7ZbQzQCCl-IQk,1678
45
45
  docling_core/types/doc/base.py,sha256=i98y4IF250adR-8BSS374K90fwfwG-vBfWh14tLC5Cs,15906
46
- docling_core/types/doc/document.py,sha256=sZsLV6GfFF8TzTgD6C47a9YrurLZFhwqt8I9PZmYkJY,202734
46
+ docling_core/types/doc/document.py,sha256=HZLSMIFa2oLx0KCbeHRS8-Y2dziQHo-S1pZZCWeXs28,203030
47
47
  docling_core/types/doc/labels.py,sha256=-W1-LW6z0J9F9ExJqR0Wd1WeqWTaY3Unm-j1UkQGlC4,7330
48
48
  docling_core/types/doc/page.py,sha256=35h1xdtCM3-AaN8Dim9jDseZIiw-3GxpB-ofF-H2rQQ,41878
49
49
  docling_core/types/doc/tokens.py,sha256=z22l9J81_sg9CYMvOuLmPuLsNT7h_s7wao2UT89DvI8,9278
@@ -76,9 +76,9 @@ docling_core/utils/generate_jsonschema.py,sha256=uNX1O5XnjyB5nA66XqZXTt3YbGuR2ty
76
76
  docling_core/utils/legacy.py,sha256=G7ed8fkBpIO8hG3DKEY83cHsrKJHyvDst_1jSdgBXMI,24406
77
77
  docling_core/utils/validate.py,sha256=aQ11UbFyl8iD_N7yTTZmm_VVeXz8KcCyn3GLXgkfYRM,2049
78
78
  docling_core/utils/validators.py,sha256=azcrndLzhNkTWnbFSu9shJ5D3j_znnLrIFA5R8hzmGU,2798
79
- docling_core-2.48.1.dist-info/licenses/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
80
- docling_core-2.48.1.dist-info/METADATA,sha256=_qTr8Qig7KoZKxEaBaKsuuNm7a7rDbJA0wVXLTkCNug,6453
81
- docling_core-2.48.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
82
- docling_core-2.48.1.dist-info/entry_points.txt,sha256=ER4zROQWkFMHIrY-oqY5E4HeCcCIg8dLkNztYGxdb7c,59
83
- docling_core-2.48.1.dist-info/top_level.txt,sha256=O-tcXpGiurlud-1ZxMq1b-OmrfAVA4sajcgWU32RtfA,13
84
- docling_core-2.48.1.dist-info/RECORD,,
79
+ docling_core-2.48.2.dist-info/licenses/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
80
+ docling_core-2.48.2.dist-info/METADATA,sha256=V5_UXej-y5Nt87w4XwWIlGzJnlE4TkfokNTcgPT4qOU,6453
81
+ docling_core-2.48.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
82
+ docling_core-2.48.2.dist-info/entry_points.txt,sha256=ER4zROQWkFMHIrY-oqY5E4HeCcCIg8dLkNztYGxdb7c,59
83
+ docling_core-2.48.2.dist-info/top_level.txt,sha256=O-tcXpGiurlud-1ZxMq1b-OmrfAVA4sajcgWU32RtfA,13
84
+ docling_core-2.48.2.dist-info/RECORD,,