Skip to content

Commit

Permalink
feat: adding HTML export to DoclingDocument, adding export of images …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
3 people authored Nov 27, 2024
1 parent b32c4cc commit ef49fd3
Show file tree
Hide file tree
Showing 37 changed files with 4,779 additions and 453 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ node_modules/
.idea/
*~
*.DS_Store
test/data/constructed_images*
test/data/doc/constructed_doc*.html
test/data/doc/constructed_doc*.yaml
test/data/doc/constructed_doc*.json
test/data/doc/constructed_doc*.dt
test/data/doc/constructed_doc*.md

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
5 changes: 3 additions & 2 deletions docling_core/types/doc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
class ImageRefMode(str, Enum):
"""ImageRefMode."""

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


class CoordOrigin(str, Enum):
Expand Down
Loading

0 comments on commit ef49fd3

Please sign in to comment.