mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
feat: add figures in markdown
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
4794ce460a
commit
d0d1ac0957
@ -324,8 +324,10 @@ class ConvertedDocument(BaseModel):
|
|||||||
"paragraph",
|
"paragraph",
|
||||||
"caption",
|
"caption",
|
||||||
"table",
|
"table",
|
||||||
|
"figure",
|
||||||
],
|
],
|
||||||
strict_text: bool = False,
|
strict_text: bool = False,
|
||||||
|
image_placeholder: str = "<!-- image -->",
|
||||||
):
|
):
|
||||||
return self.output.export_to_markdown(
|
return self.output.export_to_markdown(
|
||||||
delim=delim,
|
delim=delim,
|
||||||
@ -333,6 +335,7 @@ class ConvertedDocument(BaseModel):
|
|||||||
main_text_stop=main_text_stop,
|
main_text_stop=main_text_stop,
|
||||||
main_text_labels=main_text_labels,
|
main_text_labels=main_text_labels,
|
||||||
strict_text=strict_text,
|
strict_text=strict_text,
|
||||||
|
image_placeholder=image_placeholder,
|
||||||
)
|
)
|
||||||
|
|
||||||
def render_as_text(
|
def render_as_text(
|
||||||
|
Loading…
Reference in New Issue
Block a user