mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-03-27 11:08:32 +07:00
mk_nlp_markdown中table的拼接方式更新
This commit is contained in:
@@ -390,7 +390,7 @@ def mk_nlp_markdown(content_list):
|
||||
elif content_type == "equation":
|
||||
content_md.append(f"$$\n{c.get('latex')}\n$$")
|
||||
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:
|
||||
content_md.append(f"{'#'*int(content_type[1])} {c.get('text')}")
|
||||
return "\n\n".join(content_md)
|
||||
Reference in New Issue
Block a user