markdown to excel
Markdown to excel — comfyui_LLM_party
- log
Ask an LLM for structured data and, more often than not, you get back a markdown table - it's the format most models default to for anything tabular, because it reads cleanly in a chat window. The problem is a chat window isn't where you actually want that data; you want it in a spreadsheet. This node closes that gap: hand it a markdown table as text, it writes out a real .xlsx file.
It's a small, single-purpose converter, and that's the whole point of it existing as its own node rather than something you'd script by hand each time. comfyui_LLM_party is built around LLM agents that produce text output, and a lot of genuinely useful agent tasks - extracting data from documents, summarizing structured info, generating reports - naturally land on a markdown table as the output format. Rather than making you copy-paste that table out of a chat log and reformat it yourself, this node takes the LLM's raw markdown string and turns it directly into a spreadsheet file as the last step of the workflow.
Inputs that matter. md_str is required with no default - the markdown table text, typically wired straight from an LLM node's output rather than typed by hand. output_file defaults to output.xlsx - change this if you're generating more than one table per workflow run, since reusing the same filename will just overwrite the previous result. is_enable is the pack's standard toggle for switching the conversion off without removing the node from the graph. The single output is log, a STRING reporting how the conversion went - worth checking if you're not sure the file actually wrote successfully, since it's the only feedback this node gives you back into the graph. It's also flagged as an output node in its schema, which fits: its main job is the side effect of writing a file to disk, not handing something forward to another node.
Installing it. markdown to excel ships with the full comfyui_LLM_party pack - no separate install. Get it via ComfyUI Manager (search "comfyui_LLM_party") or cd ComfyUI/custom_nodes && git clone https://github.com/heshengtao/comfyui_LLM_party, then pip install -r requirements.txt from inside the project folder using your ComfyUI Python environment, and restart. Excel file generation needs a spreadsheet library, which is part of the pack's bundled requirements.txt - no separate install for it.
Where this actually goes wrong. The most common issue is md_str not actually being valid markdown table syntax - LLMs are good but not perfect about table formatting, and a model that drops a pipe character or misaligns a header row can produce something this node can't parse cleanly into rows and columns. If the output looks wrong or empty, check log first, and if that's unhelpful, look at the raw md_str the LLM actually produced before assuming the converter itself is broken - a malformed table going in is a far more common cause than a bug in the conversion. On a hosted or containerized run, also make sure output_file resolves somewhere the executor can actually write to and that you know how to retrieve afterward - a relative filename that works fine on your own machine may land somewhere less obvious in a remote execution environment. And if the whole pack fails to import rather than just this node erroring, that's this project's much larger requirements.txt hitting a conflict unrelated to this specific node.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| md_str | STRING | — | |
| output_file | STRING | output.xlsx | — |
| is_enable | BOOLEAN | true | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| log | STRING | — |