We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d6f1df commit f1b16d8Copy full SHA for f1b16d8
1 file changed
src/openparse/tables/pymupdf/parse.py
@@ -22,7 +22,10 @@ def output_to_html(headers: List[str], rows: List[List[str]]) -> str:
22
23
24
def output_to_markdown(headers: List[str], rows: List[List[str]]) -> str:
25
- markdown_output = "| " + " | ".join(headers) + " |\n"
+ markdown_output = ""
26
+ for header in headers:
27
+ markdown_output += "|" + (header or "")
28
+ markdown_output += " |\n"
29
markdown_output += "|---" * len(headers) + "|\n"
30
31
for row in rows:
0 commit comments