mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 12:34:22 +00:00
Adding new latex symbols, simplifying how equations are added to text
Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>
This commit is contained in:
parent
4949471e50
commit
9557431b94
@ -76,23 +76,15 @@ def test_e2e_docx_conversions():
|
|||||||
doc: DoclingDocument = conv_result.document
|
doc: DoclingDocument = conv_result.document
|
||||||
|
|
||||||
pred_md: str = doc.export_to_markdown()
|
pred_md: str = doc.export_to_markdown()
|
||||||
<<<<<<< HEAD
|
|
||||||
assert verify_export(
|
assert verify_export(
|
||||||
pred_md, str(gt_path) + ".md", generate=GENERATE
|
pred_md, str(gt_path) + ".md", generate=GENERATE
|
||||||
), "export to md"
|
), "export to md"
|
||||||
=======
|
|
||||||
assert verify_export(pred_md, str(gt_path) + ".md", GENERATE), "export to md"
|
|
||||||
>>>>>>> 64a7888 (Adding new latex symbols, simplifying how equations are added to text)
|
|
||||||
|
|
||||||
pred_itxt: str = doc._export_to_indented_text(
|
pred_itxt: str = doc._export_to_indented_text(
|
||||||
max_text_len=70, explicit_tables=False
|
max_text_len=70, explicit_tables=False
|
||||||
)
|
)
|
||||||
assert verify_export(
|
assert verify_export(
|
||||||
<<<<<<< HEAD
|
|
||||||
pred_itxt, str(gt_path) + ".itxt", generate=GENERATE
|
pred_itxt, str(gt_path) + ".itxt", generate=GENERATE
|
||||||
=======
|
|
||||||
pred_itxt, str(gt_path) + ".itxt", GENERATE
|
|
||||||
>>>>>>> 64a7888 (Adding new latex symbols, simplifying how equations are added to text)
|
|
||||||
), "export to indented-text"
|
), "export to indented-text"
|
||||||
|
|
||||||
assert verify_document(
|
assert verify_document(
|
||||||
|
Loading…
Reference in New Issue
Block a user