ComfyUI Node
XMarkdownSave
Save markdown text from a string input or multiline textbox with explicit separators before and after the main content
XMarkdownSave
- content
- save_path
◄filename_prefixComfyUI_%Y%-%m%-%d%_%H%-%M%-%S%►
◄subfolderMarkdown►
◄header_text►
◄before_main_separatornone►
◄before_main_newline_count1►
◄text_content►
◄after_main_separatornone►
◄after_main_newline_count1►
◄footer_text►
◄header_input—►
◄main_text_input—►
◄footer_input—►
Category♾️ Xz3r0/File-Processing
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| filename_prefix | STRING | ComfyUI_%Y%-%m%-%d%_%H%-%M%-%S% | Filename prefix, supports datetime placeholders: %Y%, %m%, %d%, %H%, %M%, %S% |
| subfolder | STRING | Markdown | Subfolder name (no path separators allowed), supports datetime placeholders: %Y%, %m%, %d%, %H%, %M%, %S% |
| header_text | STRING | Fallback multiline header text used when header_input is not connected. Use separator controls below instead of relying on trailing blank lines | |
| before_main_separator | COMBO | none | Separator inserted between header_text and the main content: none or newline |
| before_main_newline_count | INT | 11–99 | Number of newline characters inserted before the main content when before_main_separator is newline |
| text_content | STRING | Fallback multiline text content used when text_input is not connected | |
| after_main_separator | COMBO | none | Separator inserted between the main content and footer_text: none or newline |
| after_main_newline_count | INT | 11–99 | Number of newline characters inserted after the main content when after_main_separator is newline |
| footer_text | STRING | Fallback multiline footer text used when footer_input is not connected. Use separator controls above instead of relying on leading blank lines | |
| header_inputopt | STRING | Optional header string input. When connected, this input takes priority over header_text | |
| main_text_inputopt | STRING | Optional main content string input. When connected, input takes priority over text_content | |
| footer_inputopt | STRING | Optional footer string input. When connected, this input takes priority over footer_text |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| content | STRING | Final markdown content saved to the file |
| save_path | STRING | Saved file path relative to ComfyUI output directory |