ComfyUI Node

XMarkdownSave

Save markdown text from a string input or multiline textbox with explicit separators before and after the main content

By Xz3r0-M·Created 7 months ago·Updated 22 days ago· 11
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)

    NameTypeDefaultDescription
    filename_prefixSTRINGComfyUI_%Y%-%m%-%d%_%H%-%M%-%S%Filename prefix, supports datetime placeholders: %Y%, %m%, %d%, %H%, %M%, %S%
    subfolderSTRINGMarkdownSubfolder name (no path separators allowed), supports datetime placeholders: %Y%, %m%, %d%, %H%, %M%, %S%
    header_textSTRINGFallback multiline header text used when header_input is not connected. Use separator controls below instead of relying on trailing blank lines
    before_main_separatorCOMBOnoneSeparator inserted between header_text and the main content: none or newline
    before_main_newline_countINT11–99Number of newline characters inserted before the main content when before_main_separator is newline
    text_contentSTRINGFallback multiline text content used when text_input is not connected
    after_main_separatorCOMBOnoneSeparator inserted between the main content and footer_text: none or newline
    after_main_newline_countINT11–99Number of newline characters inserted after the main content when after_main_separator is newline
    footer_textSTRINGFallback multiline footer text used when footer_input is not connected. Use separator controls above instead of relying on leading blank lines
    header_inputoptSTRINGOptional header string input. When connected, this input takes priority over header_text
    main_text_inputoptSTRINGOptional main content string input. When connected, input takes priority over text_content
    footer_inputoptSTRINGOptional footer string input. When connected, this input takes priority over footer_text

    Outputs (2)

    NameTypeDescription
    contentSTRINGFinal markdown content saved to the file
    save_pathSTRINGSaved file path relative to ComfyUI output directory