mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-10-29 19:07:28 +08:00
line_to_standard_format 逻辑更新
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user