mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-09 13:18:24 +00:00
feat: add figure in markdown (#98)
* feat: add figures in markdown Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * update to new docling-core and update test results with figures Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * update with improved docling-core Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> --------- Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
@@ -324,8 +324,10 @@ class ConvertedDocument(BaseModel):
|
||||
"paragraph",
|
||||
"caption",
|
||||
"table",
|
||||
"figure",
|
||||
],
|
||||
strict_text: bool = False,
|
||||
image_placeholder: str = "<!-- image -->",
|
||||
):
|
||||
return self.output.export_to_markdown(
|
||||
delim=delim,
|
||||
@@ -333,6 +335,7 @@ class ConvertedDocument(BaseModel):
|
||||
main_text_stop=main_text_stop,
|
||||
main_text_labels=main_text_labels,
|
||||
strict_text=strict_text,
|
||||
image_placeholder=image_placeholder,
|
||||
)
|
||||
|
||||
def render_as_text(
|
||||
|
||||
Reference in New Issue
Block a user