The Basics of Textflow

Textflow is a JavaScript library. You will never encounter it outside of it being embedded in some other application.

Some definitions:

flowchart TD
    1([Optional Input])
    A[Command A]
    B[Command B]
    C[Command C]
    2([Output])
    1 -->|Working Text| A
    A -->|Working Text| B
    B -->|Working Text| C
    C -->|Working Text| 2
extract -selector:body -scope:inner

The key to understanding Textflow is that the Working Text is the common thread to all Commands. It is passed from Command to Command, and progressively modified as it “moves down the pipe.” The goal is to transform a string of uncontrolled text and turn it into something controlled, safe, and knowable that can be displayed in another application.