Nodes/RUI-Nodes/多行文本框(原样输出) / Text Box (Raw)
ComfyUI Node

多行文本框(原样输出) / Text Box (Raw)

The text node that won't eat your # headings

By rui40000·Created 3 years ago·Updated about 8 hours ago· 17
多行文本框(原样输出) / Text Box (Raw)
    • text
    text

    Sometimes the most useful node is the one that does nothing. 多行文本框(原样输出) / Text Box (Raw) is a STRING-to-STRING pass-through: whatever multi-line text you type in comes out the other side byte-for-byte. No comment stripping, no wildcard expansion, no dynamic-prompt token replacement. That's the entire spec, and it exists because of a specific, maddening failure mode.

    WAS Node Suite's "Text Multiline" - the text box most people reach for first - treats lines starting with # as comments and silently deletes them. It also does dynamic prompt substitution. Feed it Markdown and every heading disappears before it ever reaches your renderer. It's a fine node for prompts; it's a landmine for anything format-sensitive.

    This node is the fix. It's the recommended carrier for the pack's MarkdownToImage node (whose tooltip explicitly tells you to use it), but it's just as useful anywhere you need to hold code, JSON, or prompt text that must not be "improved" by an upstream text node.

    What you get

    • text (STRING, multiline) in - paste away.
    • text (STRING) out - identical, guaranteed.

    That's the whole interface. There are no knobs, no modes, no settings to get wrong.

    When to reach for it

    • Feeding Markdown or fenced code into a renderer without losing # headings.
    • Carrying prompt syntax that contains #, {...}, or other characters another node would interpret.
    • Holding a template you want to inspect exactly as authored.

    The honest caveat is that it's a pass-through, so if you actually want wildcard or token substitution, this is not your node - that's the point. And it can't sanitize text that's already malformed; if your input has encoding garbage, run it through the pack's UTF-8 converter node first.

    Installing

    It ships in RUI-Nodes, one of several utility nodes in the pack:

    ComfyUI Manager → search "RUI-Nodes" → install, restart
    # or:
    cd ComfyUI/custom_nodes
    git clone https://github.com/rui40000/RUI-Nodes
    cd RUI-Nodes && pip install -r requirements.txt
    

    Restart ComfyUI after. There are no model downloads and no extra dependencies - this is a couple of lines of Python wrapped in a node.

    If your text still arrives altered downstream, check what's between this node and its destination, not this node itself. When a node's entire job is to do nothing, the bug is almost always elsewhere.

    CategoryRui-Node🐶/文本处理📝

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING多行文本,一字不动地原样输出。 不删注释行、不做动态提示词/通配符/token 替换。 用来替代 WAS 的「Text Multiline」——那个节点会把 「#」开头的行当注释删掉,喂 Markdown 时标题会凭空消失。 承载 Markdown、代码等格式敏感的文本请用本节点。

    Outputs (1)

    NameTypeDescription
    textSTRING