Skip to content

Commit

Permalink
mk_nlp_markdown中table的拼接方式更新
Browse files Browse the repository at this point in the history
  • Loading branch information
myhloli committed Mar 29, 2024
1 parent cd8b2d2 commit 26e19fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magic_pdf/dict2md/mkcontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 26e19fd

Please sign in to comment.