line_to_standard_format 逻辑更新

This commit is contained in:
赵小蒙
2024-03-21 11:06:07 +08:00
parent d062bb6ce9
commit c5624ace1e
+2 -1
View File
@@ -125,7 +125,8 @@ def line_to_standard_format(line):
line_text += f"${inline_equation}$"
inline_equation_num += 1
elif span['type'] == ContentType.Text:
line_text += span['content']
text_content = ocr_escape_special_markdown_char(span['content']) # 转义特殊符号
line_text += text_content
content = {
'type': 'text',
'text': line_text,