graph markdown to HTML
Render a graph definition into a viewable page
- HTML
If you've been using this pack's knowledge-graph tools - the CSV or JSON KG toolkit nodes - you eventually end up with structured, node-and-edge data that an LLM can query but a human can't easily look at. graph_md_to_html is the converter for that gap: feed it a graph definition and it renders a self-contained HTML page you can open in a browser, instead of staring at raw text.
How it works
You supply graph_definition as text and pick a color mode, and the node converts that into HTML markup describing the same graph visually. The schema doesn't spell out the exact syntax graph_definition expects - there's no example baked into the node itself - so the honest answer is: it's a lightweight markdown-flavored graph syntax specific to this pack, and the fastest way to learn its exact shape is to look at how the pack's own example workflows build that string (an LLM call, or the output of one of the KG toolkit nodes, is the natural source), rather than guessing at syntax rules that aren't documented in the node's schema.
The inputs and outputs that matter
graph_definition- the graph, as text. In practice this is something you'd generate rather than hand-type - an LLM turning a knowledge-graph query result into this format, for example.mode-dark,light, ordtransparent(transparent background). Purely visual; pick whichever fits where you're going to view or embed the result.is_enable- standard bypass toggle.
Output: HTML (STRING) - the full page markup as text. It isn't rendered inline in ComfyUI itself; you need to get that string somewhere you can actually open it as a page - write it to a file with json_writing and open the resulting .html file in a browser, for instance.
How to install it
Via ComfyUI Manager: search comfyui_LLM_party, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/heshengtao/comfyui_LLM_party.git
Then pip install -r requirements.txt from inside the pack folder using ComfyUI's own Python, and restart. No models or API keys needed for this specific node - it's a text-to-text conversion, done locally.
Common issues & troubleshooting
The HTML output doesn't render as a graph, or errors out. The most likely cause is graph_definition not matching whatever syntax this node actually parses - since that syntax isn't documented in the node's own schema, the safest path is generating it the same way the pack's example workflows do (typically via an LLM prompted to produce it), rather than hand-authoring it from a guess.
You have an HTML string and nowhere to see it. ComfyUI doesn't preview raw HTML text in the graph. Route the HTML output into json_writing to save it as a .html file, then open that file in any browser.
Colors look wrong for where you're viewing it. That's just the mode setting - switch between dark, light, and dtransparent until it matches wherever you're actually going to display the page (a dark-themed doc site vs. a plain browser tab, for instance).
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| graph_definition | STRING | — | |
| mode | COMBO | dark | 3 options: dark, light, dtransparent |
| is_enable | BOOLEAN | true | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| HTML | STRING | — |