Commit 26e19fd2 authored by 赵小蒙's avatar 赵小蒙

mk_nlp_markdown中table的拼接方式更新

parent cd8b2d2c
...@@ -390,7 +390,7 @@ def mk_nlp_markdown(content_list): ...@@ -390,7 +390,7 @@ def mk_nlp_markdown(content_list):
elif content_type == "equation": elif content_type == "equation":
content_md.append(f"$$\n{c.get('latex')}\n$$") content_md.append(f"$$\n{c.get('latex')}\n$$")
elif content_type == "table": elif content_type == "table":
content_md.append(f"$$\n{c.get('table_latex')}\n$$") content_md.append(f"$$$\n{c.get('table_latex')}\n$$$")
elif content_type in UNI_FORMAT_TEXT_TYPE: elif content_type in UNI_FORMAT_TEXT_TYPE:
content_md.append(f"{'#'*int(content_type[1])} {c.get('text')}") content_md.append(f"{'#'*int(content_type[1])} {c.get('text')}")
return "\n\n".join(content_md) return "\n\n".join(content_md)
\ No newline at end of file
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