Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
fix: update equation code
许瑞e91d592953a7
diff --git a/magic_pdf/pre_proc/equations_replace.py b/magic_pdf/pre_proc/equations_replace.pyindex 1063697b..394b56c0 100644--- a/magic_pdf/pre_proc/equations_replace.py+++ b/magic_pdf/pre_proc/equations_replace.py@@ -191,13 +191,13 @@ def insert_interline_equations_textblock(interline_eq_bboxes, pymu_block_list):"spans": [{"size": 9.962599754333496,- "_type": TYPE_INTERLINE_EQUATION,+ "type": TYPE_INTERLINE_EQUATION,"flags": 4,"font": TYPE_INTERLINE_EQUATION,"color": 0,"ascender": 0.9409999847412109,"descender": -0.3050000071525574,- "text": f"\n$$\n{latex_content}\n$$\n",+ "latex": latex_content,"origin": [bbox[0], bbox[1]],"bbox": bbox,}@@ -320,7 +320,7 @@ def replace_line_v2(eqinfo, line):"bbox": eqinfo["bbox"]}# equation_span = line['spans'][0].copy()- equation_span["latex"] = f" ${eqinfo['latex']}$ "+ equation_span["latex"] = eqinfo['latex']equation_span["bbox"] = [x0, equation_span["bbox"][1], x1, equation_span["bbox"][3]]equation_span["origin"] = [equation_span["bbox"][0], equation_span["bbox"][1]]equation_span["chars"] = delete_chars