── /content ──────────────────────────────────────────────────────────────────────────────────────────────────
 motui · content                                                                                     focus: -
overview              content                                                                                ░
content               Text, Markdown and Diff -- the primitives that carry content, and the one that renders ░
data                  it.                                                                                    ░
input                 ───────────────────────────────────────────────────────────────────────────────────────░
choice                TRY ▸ click the sample's link label, or a task box to flip it -- the toast and the echo░
action                line report the pick                                                                   ░
layout                ── Markdown -- one sample of every construct ──────────────────────────────────────────░
feedback              ### A Markdown block                                                                   ░
chrome                                                                                                       ░
styles                Prose with bold, italic, inline code and a link -- wrapped to the pane, never past it. ░
streaming                                                                                                    ░
                      1. numbered items                                                                      ░
                      2. a second one                                                                        ░
                                                                                                             ░
                      │ A quote, for the record.                                                             ░
                                                                                                             ░
                      ```python                                                                              ░
                      def hello(name: str) -> str:                                                           ░
                          return f"hello {name}"                                                             ░
                      ```                                                                                    ░
                                                                                                             ░
                      ┌────────┬─────────┐                                                                   ░
                      │ column │ meaning │                                                                   ░
                      ├────────┼─────────┤                                                                   ░
                      │ rows   │       2 │                                                                   ░
                      └────────┴─────────┘                                                                   ░
                                                                                                             ░
                      ☐ click a box -- the host flips the source                                             ░
                      ☑ and this one is already done                                                         ░
                      API · Markdown(text) -- a rule-registry engine; fences, tables, task items and inline  ░
                      rules                                                                                  ░
                      API · Markdown.click(row, col) -> chosen: a link's url, a task box's 'todo:<i>' -- the ░
                      host reads it once and rewrites the text                                               ░
                      ── Text -- one paragraph, word-wrapped to the pane ────────────────────────────────────░
                      Plain Text is the kernel's simplest component: one logical line per \n, each           ░
                      word-wrapped to the width its parent hands it. The pane you are reading is a Viewport  ░
                      window over one document; the scrollbar on the right maps the part above and below the ░
                      fold.                                                                                  ░
                      API · Text(text, style=…) -- one logical line, wrapped by the renderer                 ░
                      ── Divider -- two ways ────────────────────────────────────────────────────────────────░
                      ───────────────────────────────────────────────────────────────────────────────────────░
                      ── a labelled rule ────────────────────────────────────────────────────────────────────░
                      API · Divider(label=…, char=…, max_width=…)                                            ░
                      ── Diff -- two texts, one line-level LCS, the hunks a reader wants ────────────────────░
                      @@ -1,6 +1,6 @@                                                                        ░
                       1  def measure(text):                                                                 ░
                       2 -    """Display width of one row, in columns."""                                    ░
                       3 -    return wcswidth(text)                                                          ░
                       2 +    """Display width of one row, cluster by cluster."""                            ░
                       3 +    return sum(width for _start, _stop, width in cell_spans(text))                 ░
                       4                                                                                     ░
                       5                                                                                     ░
                       6  def split(text):                                                                   ░
                      … 2 lines                                                                              ░
                      @@ -9,5 +9,5 @@                                                                        ░
                       9                                                                                     ░
                      10                                                                                     ░
                      11  def fit(row, width):                                                               ░
                      12 -    """Truncate a row to the width, marking the cut."""                            ░
                      12 +    """Truncate a row to the width, marking the cut with an ellipsis."""           ░
                      13      return row.fit(width)                                                          ░
                      API · Diff(before, after, *, context=3, numbers=True) -- the LCS runs once, in the     ░
                      constructor; the … rows count the lines they skip                                      ░
                                                                                                             ░
                                                                                                             ░
                                                                                                             ░
                                                                                                             ░
                                                                                                             ░
c-n / c-p pages · tab focus · c-o pane · c-f find · c-g stats · q quit
