|
@@ -168,7 +168,7 @@ def merge_para_with_text(para_block):
|
|
|
else:
|
|
else:
|
|
|
content = ocr_escape_special_markdown_char(content)
|
|
content = ocr_escape_special_markdown_char(content)
|
|
|
elif span_type == ContentType.InlineEquation:
|
|
elif span_type == ContentType.InlineEquation:
|
|
|
- content = f"${span['content']}$"
|
|
|
|
|
|
|
+ content = f" ${span['content']}$ "
|
|
|
elif span_type == ContentType.InterlineEquation:
|
|
elif span_type == ContentType.InterlineEquation:
|
|
|
content = f"\n$$\n{span['content']}\n$$\n"
|
|
content = f"\n$$\n{span['content']}\n$$\n"
|
|
|
|
|
|