Skip to content

Commit e89d48c

Browse files
matt2eclaudeStar LordMantis
authored
feat(composer): convert typed Markdown live and refuse control characters committed as text (#455)
Signed-off-by: Matt Toohey <[email protected]> Signed-off-by: Star Lord <b89298dbe87c6b3fd8a425b535d9d161f23c88d555a47925ae0b04dfe02b201e@buzz.block.builderlab.xyz> Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: Star Lord <b89298dbe87c6b3fd8a425b535d9d161f23c88d555a47925ae0b04dfe02b201e@buzz.block.builderlab.xyz> Co-authored-by: Mantis <530af7635ef7d0e1a5189d234338db88cb4ef1ede7119b4ebb4fb05c3eafe3b1@buzz.block.builderlab.xyz>
1 parent beacbff commit e89d48c

19 files changed

Lines changed: 3170 additions & 169 deletions

‎docs/channels.md‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,33 @@ tables, task lists, strikethrough and code, while preserving chat-style single l
918918
Only credential-free HTTPS links are active; raw HTML is ignored and inline remote images
919919
are not loaded. Existing image Markdown is projected as an attachment instead. Custom emoji remain
920920
event-local and are not substituted inside links or code.
921-
Authenticated live traffic reconciles through the same session. Channel creation and composer
922-
preview/toolbars are not implemented. Reply counts open a bounded thread view; attachments are
921+
Authenticated live traffic reconciles through the same session. Channel creation is not
922+
implemented. In the composer, typing the third character of a line holding only ```` ``` ```` or
923+
`~~~` turns that line into a code block at once, and one undo restores the typed characters.
924+
Shift+Enter on an empty last line leaves the block. Only a fence that opens a block converts: a
925+
fence typed inside an existing code block stays literal, and so does pasted or restored fenced
926+
text, including its closing fence line, so Enter after a pasted or edited fenced block sends or
927+
saves as usual and the text still renders as code once sent.
928+
Typing the space after a list or quote marker that starts a line (`- `, `* ` or `+ `, a number
929+
with a dot or parenthesis such as `1. ` or `3) `, or `> `) turns that line into a bullet, a
930+
numbered item starting at that number, or a quoted paragraph at once, the same block the
931+
formatting toolbar creates, and one undo restores the typed marker and its space. Inside a
932+
quote the markers nest: `- ` opens a list and `> ` a second quote. Inside a list item only a
933+
marker of the item's own list kind, typed as the only text of an item after the first,
934+
converts, nesting that item as Tab does. A marker typed after prose on the same line, inside
935+
a code block or inside pasted fenced text stays literal and renders as prose or code once
936+
sent. A marker on a line holding a mention, emoji or link, a quote marker or a marker of the
937+
other list kind typed inside a list item, and any marker typed in a list's first item or
938+
beside an item's prose also stay literal text in the composer but still render once sent: the
939+
timeline shows the list or quote, nested inside the item, where the composer shows the marker.
940+
Two lists of one kind typed one after the other, or separated only by empty lines, send with
941+
alternating markers (`-` then `*`, `1.` then `1)`) so they stay separate lists once sent.
942+
Typing an inline span (`**bold**` or `__bold__`, `_italic_` or `*italic*`, `~~strike~~`,
943+
`` `code` ``) converts it to formatting as the closing delimiter is typed, including on a
944+
heading line such as `# Title **bold**`, and one undo restores the typed characters. Heading
945+
lines themselves stay text in the composer and render as headings once sent. A single `~`
946+
never strikes, and pasted or restored delimiters stay literal text that still renders once
947+
sent. Reply counts open a bounded thread view; attachments are
923948
links. Routine freshness labels are not shown; Channel Settings → Diagnostics
924949
exposes refresh, outbox inspection and timings. Packaged builds do not
925950
include the development relay broker. GitHub fetches public data only; signed-in

0 commit comments

Comments
 (0)