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

注释更新

parent 97153fab
...@@ -206,14 +206,14 @@ def line_to_standard_format(line): ...@@ -206,14 +206,14 @@ def line_to_standard_format(line):
return content return content
else: else:
if span['type'] == ContentType.InterlineEquation: if span['type'] == ContentType.InterlineEquation:
interline_equation = span['content'] # 转义特殊符号 interline_equation = span['content']
content = { content = {
'type': 'equation', 'type': 'equation',
'latex': f"$$\n{interline_equation}\n$$" 'latex': f"$$\n{interline_equation}\n$$"
} }
return content return content
elif span['type'] == ContentType.InlineEquation: elif span['type'] == ContentType.InlineEquation:
inline_equation = span['content'] # 转义特殊符号 inline_equation = span['content']
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:
......
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