cleaned up the export

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
Peter Staar 2024-09-10 14:21:02 +02:00
parent 2af57ec35a
commit c308d7e87a
2 changed files with 3 additions and 5 deletions

View File

@ -344,9 +344,7 @@ class ConvertedDocument(BaseModel):
"subtitle-level-1",
"paragraph",
"caption",
"table",
],
strict_text: bool = False,
]
):
return self.output.export_to_markdown(
delim=delim,

View File

@ -38,8 +38,8 @@ def export_documents(
with (output_dir / f"{doc_filename}.md").open("w") as fp:
fp.write(conv_res.render_as_markdown())
# Export Document Tages format:
with (output_dir / f"{doc_filename}.md").open("w") as fp:
# Export Document Tags format:
with (output_dir / f"{doc_filename}.doctags").open("w") as fp:
fp.write(conv_res.render_as_doctags())
elif conv_res.status == ConversionStatus.PARTIAL_SUCCESS: