Commit c5624ace authored by 赵小蒙's avatar 赵小蒙

line_to_standard_format 逻辑更新

parent d062bb6c
...@@ -125,7 +125,8 @@ def line_to_standard_format(line): ...@@ -125,7 +125,8 @@ def line_to_standard_format(line):
line_text += f"${inline_equation}$" line_text += f"${inline_equation}$"
inline_equation_num += 1 inline_equation_num += 1
elif span['type'] == ContentType.Text: elif span['type'] == ContentType.Text:
line_text += span['content'] text_content = ocr_escape_special_markdown_char(span['content']) # 转义特殊符号
line_text += text_content
content = { content = {
'type': 'text', 'type': 'text',
'text': line_text, 'text': line_text,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment