From 2133af61121d202a4df04ef9a28308b82d7c87cb Mon Sep 17 00:00:00 2001 From: "Peter W. J. Staar" <91719829+PeterStaar-IBM@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:12:05 +0100 Subject: [PATCH] fix: multimodal output (#96) Signed-off-by: Peter Staar --- docling_core/types/doc/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docling_core/types/doc/document.py b/docling_core/types/doc/document.py index 35e6f3d4..57cdf01d 100644 --- a/docling_core/types/doc/document.py +++ b/docling_core/types/doc/document.py @@ -798,7 +798,7 @@ def export_to_markdown( if img is not None: imgb64 = self._image_to_base64(img) - text = f"\n![Image]({imgb64})\n" + text = f"\n![Image](data:image/png;base64,{imgb64})\n" return text else: