Skip to content

Commit ef49fd3

Browse files
PeterStaar-IBMcau-gitdolfim-ibm
authored
feat: adding HTML export to DoclingDocument, adding export of images in png with links to Markdown & HTML (#69)
Signed-off-by: Peter Staar <[email protected]> Signed-off-by: Christoph Auer <[email protected]> Signed-off-by: Michele Dolfi <[email protected]> Co-authored-by: Christoph Auer <[email protected]> Co-authored-by: Michele Dolfi <[email protected]>
1 parent b32c4cc commit ef49fd3

37 files changed

+4779
-453
lines changed

Diff for: .gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ node_modules/
33
.idea/
44
*~
55
*.DS_Store
6+
test/data/constructed_images*
7+
test/data/doc/constructed_doc*.html
8+
test/data/doc/constructed_doc*.yaml
9+
test/data/doc/constructed_doc*.json
10+
test/data/doc/constructed_doc*.dt
11+
test/data/doc/constructed_doc*.md
612

713
# Byte-compiled / optimized / DLL files
814
__pycache__/

Diff for: docling_core/types/doc/base.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
class ImageRefMode(str, Enum):
1111
"""ImageRefMode."""
1212

13-
PLACEHOLDER = "placeholder"
14-
EMBEDDED = "embedded"
13+
PLACEHOLDER = "placeholder" # just a place-holder
14+
EMBEDDED = "embedded" # embed the image as a base64
15+
REFERENCED = "referenced" # reference the image via uri
1516

1617

1718
class CoordOrigin(str, Enum):

0 commit comments

Comments
 (0)