docling-core 2.48.0__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.
- docling_core/transforms/serializer/markdown.py +1 -1
- docling_core/types/doc/document.py +6 -0
- {docling_core-2.48.0.dist-info → docling_core-2.48.2.dist-info}/METADATA +1 -1
- {docling_core-2.48.0.dist-info → docling_core-2.48.2.dist-info}/RECORD +8 -8
- {docling_core-2.48.0.dist-info → docling_core-2.48.2.dist-info}/WHEEL +0 -0
- {docling_core-2.48.0.dist-info → docling_core-2.48.2.dist-info}/entry_points.txt +0 -0
- {docling_core-2.48.0.dist-info → docling_core-2.48.2.dist-info}/licenses/LICENSE +0 -0
- {docling_core-2.48.0.dist-info → docling_core-2.48.2.dist-info}/top_level.txt +0 -0
|
@@ -332,7 +332,7 @@ class MarkdownTableSerializer(BaseTableSerializer):
|
|
|
332
332
|
]
|
|
333
333
|
for row in item.data.grid
|
|
334
334
|
]
|
|
335
|
-
if len(rows) >
|
|
335
|
+
if len(rows) > 0:
|
|
336
336
|
try:
|
|
337
337
|
table_text = tabulate(rows[1:], headers=rows[0], tablefmt="github")
|
|
338
338
|
except ValueError:
|
|
@@ -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.
|
|
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>
|
|
@@ -32,7 +32,7 @@ docling_core/transforms/serializer/common.py,sha256=vfJhu0b4vAcIres85PX774RQSTKu
|
|
|
32
32
|
docling_core/transforms/serializer/doctags.py,sha256=9_aV_ffTOTtQKZQTKz_I3kRTQ_GXHCePKwXnR-rnggA,20644
|
|
33
33
|
docling_core/transforms/serializer/html.py,sha256=h0yiDgTNIeOS-rJaMRfinUFgrZygd3MjheM7pjLw5F0,38380
|
|
34
34
|
docling_core/transforms/serializer/html_styles.py,sha256=-jBwS4EU7yfKoz0GSoxhwx90OmIKieO6TwPw57IuxcA,4692
|
|
35
|
-
docling_core/transforms/serializer/markdown.py,sha256=
|
|
35
|
+
docling_core/transforms/serializer/markdown.py,sha256=Hgs4EbMoHDW2PNCKViAKnAJQuLdIPyghL5S6vpAL-b4,24333
|
|
36
36
|
docling_core/transforms/visualizer/__init__.py,sha256=gUfF25yiJ_KO46ZIUNqZQOZGy2PLx6gnnr6AZYxKHXI,35
|
|
37
37
|
docling_core/transforms/visualizer/base.py,sha256=aEF7b3rHq6DVdX8zDYEPoq55BHDYe4Hh_97lBdcW4lY,555
|
|
38
38
|
docling_core/transforms/visualizer/key_value_visualizer.py,sha256=fp7nFLy4flOSiavdRgg5y1Mu7WVLIDGh1zEHsq8kgVM,8979
|
|
@@ -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=
|
|
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.
|
|
80
|
-
docling_core-2.48.
|
|
81
|
-
docling_core-2.48.
|
|
82
|
-
docling_core-2.48.
|
|
83
|
-
docling_core-2.48.
|
|
84
|
-
docling_core-2.48.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|